Instrumenting services using counter