count_vowels(text) that counts how many characters in text are vowels (a, e, i, o, u), case-insensitive, using a for loop over the characters.count_vowels("Hello World")3
e, o, o are vowels.
count_vowels("xyz")0
No vowels present.
Lowercase each character before checking membership in "aeiou".
Use a counter variable incremented inside the loop.