problem 2 complete
loops functioning in letterCount