TableScanner scanner = reader.getScanner(null, true);
BytesWritable key = new BytesWritable();
Schema schema = Projection.toSchema(scanner.getProjection());
int idxCount = schema.getColumnIndex("count");
Tuple value = TypesUtils.createTuple(schema);
for (; !scanner.atEnd(); scanner.advance()) {
scanner.getKey(key);
scanner.getValue(value);
try {
String word = new String(key.getBytes(), 0, key.getLength());
int count = (Integer) value.get(idxCount);