add support for sampled counters