public int getRegionCountOfTable(TableName tName) throws IOException {
    if (initialized) {
      return namespaceQuotaManager.getRegionCountOfTable(tName);
    }
    return -1;
  }
Returns cached region count, or -1 if quota manager is disabled or table status not found
hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/MasterQuotaManager.java