add counters for instrumentation