/**
 * You are a police officer trying to solve a secret code left by a criminal. Your task is to count the number of vowels in each word of the secret message.
 *
 * Write a function that takes a word as input and returns the number of vowels in that word.
 *
 * Note: We consider vowels to be 'a', 'e', 'i', 'o', and 'u'.
 */
fun countVowelsInWord(word: String): Int {

    var vowelCount = 0

    for (char in word) {
        if (char.toLowerCase() in listOf('a', 'e', 'i', 'o', 'u')) {
            vowelCount++
        }
    }

    return vowelCount
}
/**
 * You are a police officer trying to solve a secret code left by a criminal. Your task is to count the number of vowels in each word of the secret message.
 *
 * Write a function that takes a word as input and returns the number of vowels in that word.
 *
 * Note: We consider vowels to be 'a', 'e', 'i', 'o', and 'u'.
 */
fun countVowelsInWord(word: String): Int {
/**
 * You are a police officer trying to solve a secret code left by a criminal. Your task is to count the number of vowels in each word of the secret message.
 *
 * Write a function that takes a word as input and returns the number of vowels in that word.
 *
 * Note: We consider vowels to be 'a', 'e', 'i', 'o', and 'u'.
 */
fun countVowelsInWord(word: String): Int {

    var vowelCount = 0

    for (char in word) {
        if (char.toLowerCase() in listOf('a', 'e', 'i', 'o', 'u')) {
            vowelCount++
        }
    }

    return vowelCount
}