Returns amount of C's and G's in DNA string

Assignment instructions: http://www.cs.duke.edu/csed/newapt/dna2.html