Counting vowels in a string
Kotlin
Easy
strings
Task «Counting vowels in a string»
Write a program that reads a string and counts the number of vowel letters (a, e, e, i, o, u, y, e, yu, ya) in it. The case of the letters does not matter. The program should output a single integer — the number of vowels.
Input Format
One line containing arbitrary characters (letters, digits, spaces, punctuation marks). The length of the string does not exceed 1000 characters.
Output Format
One integer — the number of vowel letters in the string.
Examples
Example 1
INPUT
Привет, мир!
OUTPUT
3
Example 2
INPUT
Hello World
OUTPUT
0
Example 3
INPUT
5
1 2 3 4 5
OUTPUT
0
Example 4
INPUT
12345
OUTPUT
0
Example 5
INPUT
6
1 2 2 3 4 5
OUTPUT
0
main.kt