Extra error checking. Counting number of reads.