/**
 * A zoologist wants to count the number of animals in a given dictionary.
 *
 * Given a dictionary 'animalDict" where the keys represent the names of the animals and the values represent the
 * number of each animal, complete the function to return the total number of animals.
 *
 * @param animalDict A dictionary containing the names of animals and their respective counts.
 * @return The total number of animals.
 */
fun countAnimals(animalDict: Map<String, Int>): Int {

    var totalCount = 0

    // Iterate over the dictionary to count the animals
    for ((_, count) in animalDict) {
        totalCount += count
    }

    return totalCount
}
/**
 * A zoologist wants to count the number of animals in a given dictionary.
 *
 * Given a dictionary 'animalDict" where the keys represent the names of the animals and the values represent the
 * number of each animal, complete the function to return the total number of animals.
 *
 * @param animalDict A dictionary containing the names of animals and their respective counts.
 * @return The total number of animals.
 */
fun countAnimals(animalDict: Map<String, Int>): Int {
/**
 * A zoologist wants to count the number of animals in a given dictionary.
 *
 * Given a dictionary 'animalDict" where the keys represent the names of the animals and the values represent the
 * number of each animal, complete the function to return the total number of animals.
 *
 * @param animalDict A dictionary containing the names of animals and their respective counts.
 * @return The total number of animals.
 */
fun countAnimals(animalDict: Map<String, Int>): Int {

    var totalCount = 0

    // Iterate over the dictionary to count the animals
    for ((_, count) in animalDict) {
        totalCount += count
    }

    return totalCount
}