public static int countRows(final Table table) throws IOException {
    return countRows(table, new 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