/**
 * This function takes in a map of countries and their populations.
 * It counts the number of countries whose population is above a certain threshold.
 * Find the total count and return it.
 *
 * @param countries A map mapping country names to their populations
 * @return The number of countries whose population is above a certain threshold
 */
fun countCountries(countries: Map<String, Int>): Int {

    val threshold = 50000000  // Set the threshold population count
    var count = 0  // Initialize the count variable

    for ((_, population) in countries) {
        // Check if the population of the country is above the threshold
        if (population > threshold) {
            count++  // Increment the count if population is above the threshold
        }
    }

    return count
}
/**
 * This function takes in a map of countries and their populations.
 * It counts the number of countries whose population is above a certain threshold.
 * Find the total count and return it.
 *
 * @param countries A map mapping country names to their populations
 * @return The number of countries whose population is above a certain threshold
 */
fun countCountries(countries: Map<String, Int>): Int {
/**
 * This function takes in a map of countries and their populations.
 * It counts the number of countries whose population is above a certain threshold.
 * Find the total count and return it.
 *
 * @param countries A map mapping country names to their populations
 * @return The number of countries whose population is above a certain threshold
 */
fun countCountries(countries: Map<String, Int>): Int {

    val threshold = 50000000  // Set the threshold population count
    var count = 0  // Initialize the count variable

    for ((_, population) in countries) {
        // Check if the population of the country is above the threshold
        if (population > threshold) {
            count++  // Increment the count if population is above the threshold
        }
    }

    return count
}