Step 7 of 12 · String traversal

Count vowels

BeginnerJavaScript1,000 ms

Problem

Read one lowercase word and return how many characters are vowels. Treat a, e, i, o, and u as vowels.

Input

One lowercase word with no spaces.

Output

One integer: the number of vowels in the word.

Examples

Input
javascript
Output
3

The vowels are a, a, and i.

Input
rhythm
Output
0

None of the five lowercase vowels appears.

Browser-isolated runner

Write your solution.

Define solve(input) and return the exact output. Network access is blocked and the runner stops after 1,000 ms. Run the example to inspect local console.log output.

Best verdictNot submitted
solution.jsLocal only
Keyboard: Tab to Run, then EnterSign in to submit
Try your own inputRuns locally without adding a saved attempt
Ready

You can run the example now. Sign in to submit and save progress.

Sign in to save this work. Your code, attempts, and Accepted progress return with your account.

Saved attempts

Verdict history

No saved submissions yet. Your first verdict will appear here.