public int countRows(final Table table, final byte[]... families) throws IOException {
    Scan scan = new Scan();
    for (byte[] family : families) {
      scan.addFamily(family);
    }
    return countRows(table, scan);
  }
Return the number of rows in the given table.
@param table to count rows
@return count of rows
hbase-testing-util/src/main/java/org/apache/hadoop/hbase/HBaseTestingUtility.java