how to count a number of vowels and consonants in a given string in java