/**
 * This function counts the number of vowels in a given word within a text.
 *
 * @param text The text in which the word is present.
 * @param word The word for which we want to count the vowels.
 * @return The number of vowels present in the word within the text.
 */
fun countWordVowels(text: String, word: String): Int {

    val vowels = "aeiouAEIOU"
    var count = 0

    // Iterate through each character in the given word
    for (char in word) {
        if (char in vowels) {
            count++
        }
    }

    return count
}
/**
 * This function counts the number of vowels in a given word within a text.
 *
 * @param text The text in which the word is present.
 * @param word The word for which we want to count the vowels.
 * @return The number of vowels present in the word within the text.
 */
fun countWordVowels(text: String, word: String): Int {
/**
 * This function counts the number of vowels in a given word within a text.
 *
 * @param text The text in which the word is present.
 * @param word The word for which we want to count the vowels.
 * @return The number of vowels present in the word within the text.
 */
fun countWordVowels(text: String, word: String): Int {

    val vowels = "aeiouAEIOU"
    var count = 0

    // Iterate through each character in the given word
    for (char in word) {
        if (char in vowels) {
            count++
        }
    }

    return count
}