wrote a nucleotide counter for SAM files