Right now I implement row count over ResultScanner like this
ResultScanner
for (Result rs = scanner.next(); rs != null; rs = scanner.next()) { number++; }
Go to Hbase home directory and run this command,
./bin/hbase org.apache.hadoop.hbase.mapreduce.RowCounter 'namespace:tablename'
This will launch a mapreduce job and the output will show the number of records existing in the hbase table.