public int getQuotaSettingCount(Admin admin) throws IOException {
    List<QuotaSettings> list_quotas = admin.getQuota(new QuotaFilter());
    int quotaSettingCount = 0;
    for (QuotaSettings setting : list_quotas) {
      quotaSettingCount++;
      LOG.info("Quota Setting:" + setting);
    }
    return quotaSettingCount;
  }
minicluster tests that validate that quota entries are properly set in the quota table
hbase-server/src/test/java/org/apache/hadoop/hbase/quotas/TestQuotaAdmin.java