/**
 * Given a list of patient medical records and a specified condition, this function counts the number
 * of patients who satisfy the given condition.
 *
 * @param records A list of patient medical records. Each record is a dictionary containing the patient's information.
 * @param condition A string representing the condition to be checked against the patient's records.
 * @return An integer representing the count of patients who satisfy the given condition.
 */
fun countPatients(records: List<Map<String, String>>, condition: String): Int {

    var count = 0
    for (record in records) {
        if (record.getOrDefault("condition", "Unknown Condition") == condition) {
            count++
        }
    }
    return count
}
/**
 * Given a list of patient medical records and a specified condition, this function counts the number
 * of patients who satisfy the given condition.
 *
 * @param records A list of patient medical records. Each record is a dictionary containing the patient's information.
 * @param condition A string representing the condition to be checked against the patient's records.
 * @return An integer representing the count of patients who satisfy the given condition.
 */
fun countPatients(records: List<Map<String, String>>, condition: String): Int {
/**
 * Given a list of patient medical records and a specified condition, this function counts the number
 * of patients who satisfy the given condition.
 *
 * @param records A list of patient medical records. Each record is a dictionary containing the patient's information.
 * @param condition A string representing the condition to be checked against the patient's records.
 * @return An integer representing the count of patients who satisfy the given condition.
 */
fun countPatients(records: List<Map<String, String>>, condition: String): Int {

    var count = 0
    for (record in records) {
        if (record.getOrDefault("condition", "Unknown Condition") == condition) {
            count++
        }
    }
    return count
}