added counters api implementation