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.


The single line of input contains a single string $s$ ($1 \le |s| \le 80$), which consists of ASCII text, with no special characters. There will be only letters, numbers, printable symbols, and spaces. There will be no control characters, and the only white space will be the space character. The string $s$ is guaranteed to have at least one non-whitespace character


Output a single line with a single integer, which is the number of vowels in $s$.

Sample Input 1 Sample Output 1
This is a test.
Sample Input 2 Sample Output 2
How many vowels in sky?
Sample Input 3 Sample Output 3
Can you handle both CAPITAL and lower case?
Sample Input 4 Sample Output 4
D. J. Pike flung Q. V. Schwartz my box.
CPU Time limit 1 second
Memory limit 2048 MB
Difficulty 1.3easy
Statistics Show
License Creative Commons License (cc by-sa)

Please log in to submit a solution to this problem

Log in