String getRowCountTableName(String name) {
    if (idToTableMap == null) {
      return null;
    }
    Matcher m = rowCountPattern.matcher(name);

    if (m.find()) {
      String tuple = m.group(1);
      String tableName = m.group(3);
      if (tableName != null)
        return tableName;

      return idToTableMap.get(tuple);
    }
    return null;

  }
Returns table name for the counter name.

@param name
@return tableName
ql/src/java/org/apache/hadoop/hive/ql/history/HiveHistoryImpl.java