Capitalising, letter counter

Capitalising input and counting how many times has a letter been
generated.