Count number of occurrences of vowels in a given string

def count_vowels(text):
    """Count number of occurrences of vowels in a given string"""
    count = 0
    for i in text:
        if i.lower() in config.AVRO_VOWELS:
            count += 1
    return count