85. Count the Vowels

Acceptance — 0 accepted 0 submissions

Easy
Strings
No companies listed
A Tamil teacher says English words feel 'soft' when they have many vowels. Given a sentence, count how many vowels (a, e, i, o, u in small or capital letters) it has.

Input Format
A single line containing a sentence (letters and spaces).

Output Format
Print the number of vowels.

Constraints
• 1 ≤ length ≤ 1000

Example 1

Input
India won the match
Output
6

Explanation I, i, a, o, e, a: 6 vowels.

Example 2

Input
rhythm
Output
0

Explanation No vowels at all.

Example 3

Input
AEIOU aeiou
Output
10

Explanation All 10 are vowels, both cases count.

Acceptance —
Accepted 0
Submissions 0
Auto-save
Saved Ln 1, Col 1
Submit a solution to see its status here.
Input
Expected Output
6
No results yet
Run your code to test it against the sample cases.
Problem List