Programming

How do you calculate the number of vowels and consonants in a String?