/**
 * A program to count the number of employees in a department whose names are in a given list.
 *
 * @param departmentSalaries A dictionary where the keys are employee names and the values are their salaries.
 * @param employeeNames A list of names of employees.
 * @return The count of employees whose names are present in the employeeNames list.
 *
 * Example:
 * countEmployees(mapOf("John" to 50000, "Alice" to 60000, "Bob" to 55000, "Eve" to 70000, "Mary" to 75000),
 * listOf("Alice", "Eve", "Mary"))
 * Output: 3
 */
fun countEmployees(departmentSalaries: Map<String, Int>, employeeNames: List<String>): Int {

    var count = 0

    for (name in employeeNames) {
        if (departmentSalaries.containsKey(name)) {
            count++
        }
    }

    return count
}
/**
 * A program to count the number of employees in a department whose names are in a given list.
 *
 * @param departmentSalaries A dictionary where the keys are employee names and the values are their salaries.
 * @param employeeNames A list of names of employees.
 * @return The count of employees whose names are present in the employeeNames list.
 *
 * Example:
 * countEmployees(mapOf("John" to 50000, "Alice" to 60000, "Bob" to 55000, "Eve" to 70000, "Mary" to 75000),
 * listOf("Alice", "Eve", "Mary"))
 * Output: 3
 */
fun countEmployees(departmentSalaries: Map<String, Int>, employeeNames: List<String>): Int {
/**
 * A program to count the number of employees in a department whose names are in a given list.
 *
 * @param departmentSalaries A dictionary where the keys are employee names and the values are their salaries.
 * @param employeeNames A list of names of employees.
 * @return The count of employees whose names are present in the employeeNames list.
 *
 * Example:
 * countEmployees(mapOf("John" to 50000, "Alice" to 60000, "Bob" to 55000, "Eve" to 70000, "Mary" to 75000),
 * listOf("Alice", "Eve", "Mary"))
 * Output: 3
 */
fun countEmployees(departmentSalaries: Map<String, Int>, employeeNames: List<String>): Int {

    var count = 0

    for (name in employeeNames) {
        if (departmentSalaries.containsKey(name)) {
            count++
        }
    }

    return count
}