Adapt to renamed api endpoint
api-stat-counter was renamed to api-1-stat-counter, that resulted an error on api_stat_counter() call
I noticed some e2e tests failing after checking out latest code. throwing error api_stat_counter funtion isn't defined.
Migrated from D1627 (view on Phabricator)