/**
 * This function counts the number of vowels in a string representing song lyrics.
 *
 * @param songLyrics The string containing the song lyrics.
 * @return The total number of vowels in the song lyrics.
 *
 * Example:
 * If songLyrics is "I wanna hold your hand", the output will be 7, as there are 7 vowels ('I', 'a', 'o', 'e', 'o', 'u', 'a') in the lyrics.
 */
fun countVowels(songLyrics: String): Int {

    // Initialize a variable to keep track of the vowel count
    var vowelCount = 0

    // Iterate over each character in the song lyrics
    for (char in songLyrics) {
        // Check if the character is a vowel (lowercase or uppercase)
        if (char.toLowerCase() in listOf('a', 'e', 'i', 'o', 'u')) {
            // Increase the vowel count by 1
            vowelCount++
        }
    }

    return vowelCount
}
/**
 * This function counts the number of vowels in a string representing song lyrics.
 *
 * @param songLyrics The string containing the song lyrics.
 * @return The total number of vowels in the song lyrics.
 *
 * Example:
 * If songLyrics is "I wanna hold your hand", the output will be 7, as there are 7 vowels ('I', 'a', 'o', 'e', 'o', 'u', 'a') in the lyrics.
 */
fun countVowels(songLyrics: String): Int {
/**
 * This function counts the number of vowels in a string representing song lyrics.
 *
 * @param songLyrics The string containing the song lyrics.
 * @return The total number of vowels in the song lyrics.
 *
 * Example:
 * If songLyrics is "I wanna hold your hand", the output will be 7, as there are 7 vowels ('I', 'a', 'o', 'e', 'o', 'u', 'a') in the lyrics.
 */
fun countVowels(songLyrics: String): Int {

    // Initialize a variable to keep track of the vowel count
    var vowelCount = 0

    // Iterate over each character in the song lyrics
    for (char in songLyrics) {
        // Check if the character is a vowel (lowercase or uppercase)
        if (char.toLowerCase() in listOf('a', 'e', 'i', 'o', 'u')) {
            // Increase the vowel count by 1
            vowelCount++
        }
    }

    return vowelCount
}