Counting nucleotides in C