import re def count_vowels(str): return len(len(re.findall(r'[aeiou]', str, re.IGNORECASE)))