Ruby count nucleotides