public Long incrementCounter(String name) {
    return incrementCounter(name,Long.valueOf(1));
  }
Closes scope if open, and reopens it
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/common/metrics/LegacyMetrics.java