/**
 * Given a list of records containing information about different species, 
 * this function counts the number of records that match a specified species.
 *
 * @param records a list of records where each record is a Pair containing the species name and the number of individuals
 * @param species the species name to search for in the records
 * @return the number of records that match the specified species
 */
fun countRecords(records: List<Pair<String, Int>>, species: String): Int {

    var count = 0
    for (record in records) {
        if (record.first == species) {
            count += record.second
        }
    }
    return count
}
/**
 * Given a list of records containing information about different species, 
 * this function counts the number of records that match a specified species.
 *
 * @param records a list of records where each record is a Pair containing the species name and the number of individuals
 * @param species the species name to search for in the records
 * @return the number of records that match the specified species
 */
fun countRecords(records: List<Pair<String, Int>>, species: String): Int {
/**
 * Given a list of records containing information about different species, 
 * this function counts the number of records that match a specified species.
 *
 * @param records a list of records where each record is a Pair containing the species name and the number of individuals
 * @param species the species name to search for in the records
 * @return the number of records that match the specified species
 */
fun countRecords(records: List<Pair<String, Int>>, species: String): Int {

    var count = 0
    for (record in records) {
        if (record.first == species) {
            count += record.second
        }
    }
    return count
}