#K67802. Count Vowels
Count Vowels
Count Vowels
You are given a string and your task is to count the number of vowels in it. Vowels are the letters \(a, e, i, o, u\) and they can appear in both lowercase and uppercase.
For example, in the string "hello world", there are 3 vowels: e, o, o.
Your solution should read input from the standard input (stdin) and output the result to the standard output (stdout).
inputFormat
A single line containing a string (s) which may consist of letters, digits, spaces, and special characters.
outputFormat
An integer representing the number of vowels in the string.## sample
hello world
3