Make class MetricCounter be the base class of MetricCounterInt & MetricCounterLong