caching counters