public int getItemsRead() {
      return itemsRead;
    }
Reads blocks off of an {@link HFileBlockChannelPositionIterator}, counting them as it does.
hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFileBlockHeaderCorruption.java