/**
 * This function takes in a list of shift dates and a list of nurses. It returns a map that counts the number of shifts each nurse has.
 *
 * @param shiftDates A list of dates on which shifts occur
 * @param nurses A list of names of nurses
 * @return A map containing the count of shifts for each nurse
 */
fun countShifts(shiftDates: List<String>, nurses: List<String>): Map<String, Int> {

    // Initialize an empty map to store the count of shifts for each nurse
    val shiftCount = mutableMapOf<String, Int>()

    // Iterate over each shift date
    for (date in shiftDates) {
        // Iterate over each nurse
        for (nurse in nurses) {
            // Check if nurse is already in the map, if not, add the nurse to the map with a count of 1
            if (!shiftCount.containsKey(nurse)) {
                shiftCount[nurse] = 1
            } else {
                // If nurse is already in the map, increment their shift count by 1
                shiftCount[nurse] = shiftCount.getValue(nurse) + 1
            }
        }
    }

    return shiftCount
}
/**
 * This function takes in a list of shift dates and a list of nurses. It returns a map that counts the number of shifts each nurse has.
 *
 * @param shiftDates A list of dates on which shifts occur
 * @param nurses A list of names of nurses
 * @return A map containing the count of shifts for each nurse
 */
fun countShifts(shiftDates: List<String>, nurses: List<String>): Map<String, Int> {
/**
 * This function takes in a list of shift dates and a list of nurses. It returns a map that counts the number of shifts each nurse has.
 *
 * @param shiftDates A list of dates on which shifts occur
 * @param nurses A list of names of nurses
 * @return A map containing the count of shifts for each nurse
 */
fun countShifts(shiftDates: List<String>, nurses: List<String>): Map<String, Int> {

    // Initialize an empty map to store the count of shifts for each nurse
    val shiftCount = mutableMapOf<String, Int>()

    // Iterate over each shift date
    for (date in shiftDates) {
        // Iterate over each nurse
        for (nurse in nurses) {
            // Check if nurse is already in the map, if not, add the nurse to the map with a count of 1
            if (!shiftCount.containsKey(nurse)) {
                shiftCount[nurse] = 1
            } else {
                // If nurse is already in the map, increment their shift count by 1
                shiftCount[nurse] = shiftCount.getValue(nurse) + 1
            }
        }
    }

    return shiftCount
}