api: counters