@Override
    public SortedMap<String, Counter> getCounters(MetricFilter filter) {
        return getMetrics(Counter.class, filter);
    }
@ Override public SortedMap < String , Counter > getCounters ( MetricFilter filter ) { return getMetrics ( Counter . class , filter ) ; }
Returns a map of all the counters in the registry and their names which match the given
filter.

@param filter the metric filter to match
@return all the counters in the registry