def has_required_vowels(text, no_of_vowels=3):
    """Check if there are the required number of vowels"""

    # Set up vowels and vowel count
    vowels = 'aeiou'
    vowel_count = 0

    # count vowels in text until it reaches no_of_vowels,
    # at which point, return True, or return False otherwise
    for character in text:
        if character in vowels:
            vowel_count += 1
            if vowel_count == no_of_vowels:
                return True

    return False