How to count vowels,consonants and spaces