Solution to Rosalind 'counting DNA nucleotides'