code: @Override
      public long count(String tableName, String familyName, XPath condition) throws IOException {
  	logger.debug("NATIVE Begin count");
  	// clone the current conf
  	org.apache.hadoop.conf.Configuration customConf = new org.apache.hadoop.conf.Configuration(super.getHbcfg());
  	// Increase RPC timeout, in case of a slow computation
          customConf.setLong("hbase.rpc.timeout", 600000);
          // Default is 1, set to a higher value for faster scanner.next(..)
          customConf.setLong("hbase.client.scanner.caching", 1000);
  
  	/*
          System.out.println("HBaseUtils begin of |customConf|");
  	Configuration.dumpConfiguration(customConf, new PrintWriter(System.out));
  	System.out.println("\nHBaseUtils end of |customConf|");
  	*/
  
          AggregationClient agClient = new AggregationClient(customConf);
  	long rowCount = 0;
  	byte[] tName = Bytes.toBytes(tableName);
  	try {
  	    Scan scan = getScan(tableName, familyName);
  	    rowCount = agClient.rowCount(tName, null, scan);
  	} catch (Throwable e) {
              throw new IOException(e.toString());
  	}
          return rowCount;
      }
docs: Gets a number of record of tableName matching condition
  @param tableName the table name
  @param familyName the family
  @param condition to match
  @throws IOException