/**
 * Exercise: Write a function that takes in a list of patients and a specific condition as arguments. The function should 
 * count the number of patients who have the specified condition and return the count.
 *
 * Example:
 * patients = ["John", "Sarah", "Chris", "Kate", "Mike"]
 * condition = "fever"
 *
 * Expected output:
 * 0
 *
 * patients = ["John", "Sarah", "Chris", "Kate", "Mike", "Emma", "Emily", "David"]
 * condition = "cough"
 *
 * Expected output:
 * 0
 *
 * patients = ["John", "Sarah", "Chris", "Kate", "Mike", "Emma", "Emily", "David"]
 * condition = "headache"
 *
 * Expected output:
 * 3
 */
fun countPatients(patients: List<String>, condition: String): Int {

    var count = 0
    for (patient in patients) {
        if (condition.toLowerCase() in patient.toLowerCase()) {
            count++
        }
    }
    return count
}
/**
 * Exercise: Write a function that takes in a list of patients and a specific condition as arguments. The function should 
 * count the number of patients who have the specified condition and return the count.
 *
 * Example:
 * patients = ["John", "Sarah", "Chris", "Kate", "Mike"]
 * condition = "fever"
 *
 * Expected output:
 * 0
 *
 * patients = ["John", "Sarah", "Chris", "Kate", "Mike", "Emma", "Emily", "David"]
 * condition = "cough"
 *
 * Expected output:
 * 0
 *
 * patients = ["John", "Sarah", "Chris", "Kate", "Mike", "Emma", "Emily", "David"]
 * condition = "headache"
 *
 * Expected output:
 * 3
 */
fun countPatients(patients: List<String>, condition: String): Int {
/**
 * Exercise: Write a function that takes in a list of patients and a specific condition as arguments. The function should 
 * count the number of patients who have the specified condition and return the count.
 *
 * Example:
 * patients = ["John", "Sarah", "Chris", "Kate", "Mike"]
 * condition = "fever"
 *
 * Expected output:
 * 0
 *
 * patients = ["John", "Sarah", "Chris", "Kate", "Mike", "Emma", "Emily", "David"]
 * condition = "cough"
 *
 * Expected output:
 * 0
 *
 * patients = ["John", "Sarah", "Chris", "Kate", "Mike", "Emma", "Emily", "David"]
 * condition = "headache"
 *
 * Expected output:
 * 3
 */
fun countPatients(patients: List<String>, condition: String): Int {

    var count = 0
    for (patient in patients) {
        if (condition.toLowerCase() in patient.toLowerCase()) {
            count++
        }
    }
    return count
}