/**
 * This function takes a list of patient ages, a start range, and an end range, and returns the count of patients
 * whose age falls within the given range.
 *
 * @param patientList List of patient ages
 * @param startRange Starting age of the range
 * @param endRange Ending age of the range
 * @return The count of patients whose age falls within the given range
 */
fun countPatientsInRange(patientList: List<Int>, startRange: Int, endRange: Int): Int {

    var count = 0
    for (age in patientList) {
        if (age in startRange..endRange) {
            count++
        }
    }
    return count
}
/**
 * This function takes a list of patient ages, a start range, and an end range, and returns the count of patients
 * whose age falls within the given range.
 *
 * @param patientList List of patient ages
 * @param startRange Starting age of the range
 * @param endRange Ending age of the range
 * @return The count of patients whose age falls within the given range
 */
fun countPatientsInRange(patientList: List<Int>, startRange: Int, endRange: Int): Int {
/**
 * This function takes a list of patient ages, a start range, and an end range, and returns the count of patients
 * whose age falls within the given range.
 *
 * @param patientList List of patient ages
 * @param startRange Starting age of the range
 * @param endRange Ending age of the range
 * @return The count of patients whose age falls within the given range
 */
fun countPatientsInRange(patientList: List<Int>, startRange: Int, endRange: Int): Int {

    var count = 0
    for (age in patientList) {
        if (age in startRange..endRange) {
            count++
        }
    }
    return count
}