Counting Vowels
InterviewTime limit2sMemory limit512 MB
Count how many characters in a lowercase string are one of the vowels a, i, u, e, o.
- Level
Easy1 of 10
- Topics
- String, Implementation
- Solved
- No attempts yet
Problem
You are given a string S of length N consisting of lowercase English letters. Find the number of vowel characters in S, that is, the total count of a, i, u, e, and o.
Input
Input is given from standard input in the following format.
N
S
Output
Print the number of vowel characters in S, that is, the total count of a, i, u, e, and o.
Constraints
1 ≤ N ≤ 50.Sis a string of lengthN.- Each character of
Sis a lowercase English letter.