#K94757. Count the Vowels
Count the Vowels
Count the Vowels
Your task is to count the number of vowels in a given string. The string can contain uppercase letters, lowercase letters, and spaces. Vowels in this problem are defined as: \(a, e, i, o, u\) in both cases.
Constraints:
- The length of the input string is between 0 and \(10^5\) inclusive.
Examples:
Input: Hello World Output: 3</p>Input: algorithms are fun Output: 6
Input: bcdfghjklmnpqrstvwxyz Output: 0
inputFormat
The input consists of a single line containing a string \(s\). The string may include uppercase letters, lowercase letters, and spaces.
outputFormat
Output a single integer representing the number of vowels in the input string.
## sampleHello World
3