public int countRows(final Region region) throws IOException {
    return countRows(region, new Scan());
  }
Return the number of rows in the given table.
hbase-testing-util/src/main/java/org/apache/hadoop/hbase/HBaseTestingUtility.java