This is a python code block that creates a counting vowel function.
def count_vowels():
"""
Counts the number of vowels a string contains.
"""
vowels = 'aeiou'
count = 0
for char in
string.lower():
if char in vowels:
count += 1
return count
result = count_vowels('example')
print(result)