/**
 * This function counts the number of animals of a specific species in a given list.
 *
 * @param animalList A list containing the names of various animals.
 * @param species The specific species of animal to count.
 * @return The number of animals of the specific species in the list.
 */
fun countAnimals(animalList: List<String>, species: String): Int {

    var count = 0

    for (animal in animalList) {
        if (animal == species) {
            count++
        }
    }

    return count
}
/**
 * This function counts the number of animals of a specific species in a given list.
 *
 * @param animalList A list containing the names of various animals.
 * @param species The specific species of animal to count.
 * @return The number of animals of the specific species in the list.
 */
fun countAnimals(animalList: List<String>, species: String): Int {
/**
 * This function counts the number of animals of a specific species in a given list.
 *
 * @param animalList A list containing the names of various animals.
 * @param species The specific species of animal to count.
 * @return The number of animals of the specific species in the list.
 */
fun countAnimals(animalList: List<String>, species: String): Int {

    var count = 0

    for (animal in animalList) {
        if (animal == species) {
            count++
        }
    }

    return count
}