public void updateQuotaForRegionMerge(RegionInfo mergedRegion) throws IOException {
    if (!stateManager.isInitialized()) {
      throw new IOException(
        "Merge operation is being performed even before namespace auditor is initialized.");
    } else if (
      !stateManager.checkAndUpdateNamespaceRegionCount(mergedRegion.getTable(),
        mergedRegion.getRegionName(), -1)
    ) {
      throw new QuotaExceededException("Region merge not possible for :"
        + mergedRegion.getEncodedName() + " as quota limits are exceeded ");
    }
  }
Get region count for table
@param tName - table name
@return cached region count, or -1 if table status not found
@throws IOException Signals that the namespace auditor has not been initialized
hbase-server/src/main/java/org/apache/hadoop/hbase/namespace/NamespaceAuditor.java