incrementReadCount

Count incoming record and return the record's index. If markEndOfStream has been called, this should throw an exception.