Java program to Count the letters