Count Vowels In A String

Count the number of vowels in a given string.

Easy12/15/2023

Problem statement

Write a program that takes a string and returns the count of vowels (a, e, i, o, u, y) in the string. The string will contain only lowercase letters and no spaces.

Problem leaderboard

#
Size
%
Users
#1
33 c.
Top 39%
+34
justinsullard
Jisu
John
shawn-walcher
maximec-indy
Adrien1605036937
sean
User-4957081549
tree
NotAMojangDev
#2
35 c.
Top 54%
+7
oskar
Ryan
lucas
Thomasdcrt
Eliott
CorentinTh
cers
Isabella
josex2r
Tony
#3
36 c.
Top 61%
marc-indy
georg87
LeoMartinDev
deanacus
Scott
Seboran
scpchicken
Thomas
#4
37 c.
Top 62%
olivernybo
#5
38 c.
Top 74%
+4
rucin93
SantYalSAuDATiOX
dmarkenstein
mahshidghaffari
Bull
TooBusyForYou
Ninluc
alexisab
chalda-pnuzig
CaporalDead
#6
39 c.
Top 77%
Lucas5825343024
Maxenceboo
snoozingnewt
#7
40 c.
Top 78%
yoyozbi
#8
43 c.
Top 80%
m-i-z-u-k-i
KrausRaus
#9
45 c.
Top 81%
randolchance
#10
47 c.
Top 83%
Europe2048
Jason
Mif712
#11
50 c.
Top 84%
ComputerKWasTaken
#12
51 c.
Top 85%
emma
#13
53 c.
Top 86%
goodwyna21
#14
55 c.
Top 88%
Pascal
CerebralDatabank
Vincent
#15
56 c.
Top 90%
thaispalmer
Loshido
#16
60 c.
Top 91%
cedric25
#17
69 c.
Top 92%
cabz0r
#18
70 c.
Top 93%
Benio
#19
83 c.
Top 94%
endevo-mschulz
#20
89 c.
Top 95%
Haiko
#21
91 c.
Top 96%
User-1946509497
#22
127 c.
Top 96%
Luke
#23
179 c.
Top 97%
Sidd5arth
#24
197 c.
Top 98%
Bootsmash
#25
218 c.
Top 99%
ALefrancois27
#26
357 c.
Top 100%
Lins