/**
 * This function counts the number of landmarks in a given area that meet the specified criteria.
 *
 * @param landmarks A dictionary containing the landmarks with their corresponding details.
 * @param criteria The criteria that the landmarks must meet.
 * @return The count of landmarks that meet the criteria.
 */
fun countLandmarks(landmarks: Map<String, Map<String, String>>, criteria: String): Int {

    var count = 0  // Initialize the count as 0

    // Loop through each landmark in the dictionary
    for ((_, details) in landmarks) {
        // Check if the landmark meets the criteria
        if (criteria in details.values) {
            count++  // Increment the count if the criteria is met
        }
    }

    return count
}
/**
 * This function counts the number of landmarks in a given area that meet the specified criteria.
 *
 * @param landmarks A dictionary containing the landmarks with their corresponding details.
 * @param criteria The criteria that the landmarks must meet.
 * @return The count of landmarks that meet the criteria.
 */
fun countLandmarks(landmarks: Map<String, Map<String, String>>, criteria: String): Int {
/**
 * This function counts the number of landmarks in a given area that meet the specified criteria.
 *
 * @param landmarks A dictionary containing the landmarks with their corresponding details.
 * @param criteria The criteria that the landmarks must meet.
 * @return The count of landmarks that meet the criteria.
 */
fun countLandmarks(landmarks: Map<String, Map<String, String>>, criteria: String): Int {

    var count = 0  // Initialize the count as 0

    // Loop through each landmark in the dictionary
    for ((_, details) in landmarks) {
        // Check if the landmark meets the criteria
        if (criteria in details.values) {
            count++  // Increment the count if the criteria is met
        }
    }

    return count
}