Move read counting to bam module.