Counting vowels in a string
JavaScript
Easy
strings
Task «Counting vowels in a string»
Write a program that takes a string and counts the number of vowel letters (a, e, i, o, u) in it. The case of the letters is not considered. The string may contain spaces and punctuation marks. Output the number of vowels.
Input Format
One line containing arbitrary text.
Output Format
One integer — the number of vowel letters.
Examples
Example 1
INPUT
Hello World
OUTPUT
3
Example 2
INPUT
Python Programming
OUTPUT
4
main.js