/**
 * Write a function that takes a word as input and counts the number of vowels in the word.
 *
 * Example:
 * countVowels("hello") should return 2.
 */
fun countVowels(word: String): Int {

    // Initialize a variable to store the count of vowels
    var vowelCount = 0

    // Create a loop to iterate over each character in the word
    var i = 0
    while (i < word.length) {
        // Check if the character is a vowel (a, e, i, o, u)
        if (word[i] == 'a' || word[i] == 'e' || word[i] == 'i' || word[i] == 'o' || word[i] == 'u') {
            // Increase the count of vowels
            vowelCount++
        }
        // Increment the index for the next iteration
        i++
    }

    // Return the final count of vowels
    return vowelCount
}
/**
 * Write a function that takes a word as input and counts the number of vowels in the word.
 *
 * Example:
 * countVowels("hello") should return 2.
 */
fun countVowels(word: String): Int {
/**
 * Write a function that takes a word as input and counts the number of vowels in the word.
 *
 * Example:
 * countVowels("hello") should return 2.
 */
fun countVowels(word: String): Int {

    // Initialize a variable to store the count of vowels
    var vowelCount = 0

    // Create a loop to iterate over each character in the word
    var i = 0
    while (i < word.length) {
        // Check if the character is a vowel (a, e, i, o, u)
        if (word[i] == 'a' || word[i] == 'e' || word[i] == 'i' || word[i] == 'o' || word[i] == 'u') {
            // Increase the count of vowels
            vowelCount++
        }
        // Increment the index for the next iteration
        i++
    }

    // Return the final count of vowels
    return vowelCount
}