/**
 * A zoologist wants to count the number of individuals in different species
 * given a list of species and the count threshold, count the number of species
 * that have a count above the threshold
 * @param speciesList a list containing the counts of individuals in different species
 * @param countThreshold the minimum count required for a species to be considered
 * @return the number of species above the count threshold
 */
fun countSpecies(speciesList: List<Int>, countThreshold: Int): Int {

    // Initialize the counter for species above threshold
    var speciesAboveThreshold = 0

    // Iterate through each count in the speciesList
    for (count in speciesList) {
        // Check if the count is above the threshold
        if (count > countThreshold) {
            // Increment the counter for species above threshold
            speciesAboveThreshold++
        }
    }

    // Return the total number of species above the threshold
    return speciesAboveThreshold
}
/**
 * A zoologist wants to count the number of individuals in different species
 * given a list of species and the count threshold, count the number of species
 * that have a count above the threshold
 * @param speciesList a list containing the counts of individuals in different species
 * @param countThreshold the minimum count required for a species to be considered
 * @return the number of species above the count threshold
 */
fun countSpecies(speciesList: List<Int>, countThreshold: Int): Int {
/**
 * A zoologist wants to count the number of individuals in different species
 * given a list of species and the count threshold, count the number of species
 * that have a count above the threshold
 * @param speciesList a list containing the counts of individuals in different species
 * @param countThreshold the minimum count required for a species to be considered
 * @return the number of species above the count threshold
 */
fun countSpecies(speciesList: List<Int>, countThreshold: Int): Int {

    // Initialize the counter for species above threshold
    var speciesAboveThreshold = 0

    // Iterate through each count in the speciesList
    for (count in speciesList) {
        // Check if the count is above the threshold
        if (count > countThreshold) {
            // Increment the counter for species above threshold
            speciesAboveThreshold++
        }
    }

    // Return the total number of species above the threshold
    return speciesAboveThreshold
}