Step 7 of 12 · String traversal
Count vowels
Problem
Read one lowercase word and return how many characters are vowels. Treat a, e, i, o, and u as vowels.
Input
One lowercase word with no spaces.
Output
One integer: the number of vowels in the word.
Examples
Input
javascript
Output
3
The vowels are a, a, and i.
Input
rhythm
Output
0
None of the five lowercase vowels appears.