/**
 * This function counts the number of times a specific species appears in a list of species.
 *
 * @param speciesList A list of species names (strings).
 * @param targetSpecies The species name to count.
 * @return The number of times the target species appears in the list.
 */
fun countSpecies(speciesList: List<String>, targetSpecies: String): Int {

    var count = 0

    // Loop through each species in the list
    for (species in speciesList) {
        // Check if the species matches the target species
        if (species == targetSpecies) {
            // Increment the count by 1
            count++
        }
    }

    // Return the final count
    return count
}
/**
 * This function counts the number of times a specific species appears in a list of species.
 *
 * @param speciesList A list of species names (strings).
 * @param targetSpecies The species name to count.
 * @return The number of times the target species appears in the list.
 */
fun countSpecies(speciesList: List<String>, targetSpecies: String): Int {
/**
 * This function counts the number of times a specific species appears in a list of species.
 *
 * @param speciesList A list of species names (strings).
 * @param targetSpecies The species name to count.
 * @return The number of times the target species appears in the list.
 */
fun countSpecies(speciesList: List<String>, targetSpecies: String): Int {

    var count = 0

    // Loop through each species in the list
    for (species in speciesList) {
        // Check if the species matches the target species
        if (species == targetSpecies) {
            // Increment the count by 1
            count++
        }
    }

    // Return the final count
    return count
}