Count Vowels
EasyString
Description
Given a string s of lowercase letters, return how many characters are vowels (a, e, i, o, u).
Examples
Input:
s = "hello"Output:
2Explanation:
The string contains 2 vowel letters drawn from a, e, i, o, and u.
Input:
s = "rhythm"Output:
0Explanation:
The string contains 0 vowel letters drawn from a, e, i, o, and u.
Input:
s = "arena"Output:
3Explanation:
The string contains 3 vowel letters drawn from a, e, i, o, and u.
Constraints
- •
1 ≤ s.length ≤ 10⁴ - •
s consists of lowercase English letters.