def count_vowels(string):
    """
    Returns the number of vowels in a given string.
    """
    count = 0
    for character in string.lower():
        if character in "aeiou":
            count += 1
    return count