Base API for counters