api: expose counters