Count Vowels
Easy
strings
Description
Write a function that counts and returns the number of vowels (a, e, i, o, u) in a given string. Case should not matter.
Examples
Example:
Input: 'Education'
Output: 5
Explanation: The vowels are E, u, a, i, o. Total count is 5.
Constraints
- Input is a string.
- Vowels are 'a', 'e', 'i', 'o', 'u'.
- Must be case-insensitive.
Loading...
Test Case 1
Input: "Education"
Output: 5
Test Case 2
Input: "Rhythm"
Output: 0
Test Case 3
Input: "AEIOU"
Output: 5
