Problem C
Count the Vowels
Given a line of text, count the vowels! For this problem, the only vowels are A, E, I, O and U, both upper and lower case. No other letters will be considered vowels for the purposes of this problem.
Input
The single line of input contains a single string
Output
Output a single line with a single integer, which is the
number of vowels in
Sample Input 1 | Sample Output 1 |
---|---|
This is a test. |
4 |
Sample Input 2 | Sample Output 2 |
---|---|
How many vowels in sky? |
5 |
Sample Input 3 | Sample Output 3 |
---|---|
Can you handle both CAPITAL and lower case? |
14 |
Sample Input 4 | Sample Output 4 |
---|---|
D. J. Pike flung Q. V. Schwartz my box. |
5 |