private boolean runCount(String[] args) throws Exception {
    // need to make a copy of the configuration because to make sure
    // different temp dirs are used.
    int status =
      ToolRunner.run(new Configuration(UTIL.getConfiguration()), new CellCounter(), args);
    return status == 0;
  }
Test CellCounter with time range all data should print to output
hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/mapreduce/TestCellCounter.java