Count nucleotides in a string of DNA