/**
 * This function counts the number of species in a given species list that have a population
 * greater than or equal to threshold_1 or threshold_2.
 *
 * @param speciesList A list of dictionaries containing species information.
 * @param threshold1 The first population threshold.
 * @param threshold2 The second population threshold.
 * @return The count of species with a population greater than or equal to threshold_1 or threshold_2.
 */
fun countSpecies(speciesList: List<Map<String, Int>>, threshold1: Int, threshold2: Int): Int {

    var count = 0

    for (species in speciesList) {
        if (species["population"]!! >= threshold1 || species["population"]!! >= threshold2) {
            count++
        }
    }

    return count
}
/**
 * This function counts the number of species in a given species list that have a population
 * greater than or equal to threshold_1 or threshold_2.
 *
 * @param speciesList A list of dictionaries containing species information.
 * @param threshold1 The first population threshold.
 * @param threshold2 The second population threshold.
 * @return The count of species with a population greater than or equal to threshold_1 or threshold_2.
 */
fun countSpecies(speciesList: List<Map<String, Int>>, threshold1: Int, threshold2: Int): Int {
/**
 * This function counts the number of species in a given species list that have a population
 * greater than or equal to threshold_1 or threshold_2.
 *
 * @param speciesList A list of dictionaries containing species information.
 * @param threshold1 The first population threshold.
 * @param threshold2 The second population threshold.
 * @return The count of species with a population greater than or equal to threshold_1 or threshold_2.
 */
fun countSpecies(speciesList: List<Map<String, Int>>, threshold1: Int, threshold2: Int): Int {

    var count = 0

    for (species in speciesList) {
        if (species["population"]!! >= threshold1 || species["population"]!! >= threshold2) {
            count++
        }
    }

    return count
}