public boolean hasCounter(String counterName) {
    return this.counters.containsKey(counterName);
  }
Returns true if a counter exists with the counterName
hbase-client/src/main/java/org/apache/hadoop/hbase/client/metrics/ServerSideScanMetrics.java