See the acount++? You need to create an integer with the name acount (or whatever your letter is) and set it to 0... Once it finds the letter a in your sentence, it will add 1 to acount... sent is the variable I used for the sentence... You need to create a whole bunch of cases for each letter as well... For the second piece of code, you need to repeat that for each letter as well!