static Map<String, Long> reportMetricCounters(String... apis) {
    Map<String, Long> map = new LinkedHashMap<>();
    MetricRegistry registry = Metrics.getRegistry();
    List<String> names = HMSCatalogAdapter.getMetricNames(apis);
    for(String name : names) {
      Counter counter = registry.counter(name);
      if (counter != null) {
        long count = counter.getCount();
        map.put(name, count);
      }
    }
    return map;
  }
@param apis a list of api calls
@return the map of HMSCatalog route counter metrics keyed by their names
standalone-metastore/metastore-rest-catalog/src/test/java/org/apache/iceberg/rest/HMSTestBase.java