/**
 * This function counts the number of each type of animal that a veterinarian has treated.
 *
 * @param animalDict A dictionary containing the animal as keys and the number of animals treated as values.
 * @return A dictionary containing the animal as keys and the count of animals treated as values.
 */
fun countAnimals(animalDict: Map<String, Int>): Map<String, Int> {

    val animalCount = mutableMapOf<String, Int>()

    for ((animal, count) in animalDict) {
        for (i in 0 until count) {
            if (animalCount.containsKey(animal)) {
                animalCount[animal] = animalCount[animal]!! + 1
            } else {
                animalCount[animal] = 1
            }
        }
    }

    return animalCount
}
/**
 * This function counts the number of each type of animal that a veterinarian has treated.
 *
 * @param animalDict A dictionary containing the animal as keys and the number of animals treated as values.
 * @return A dictionary containing the animal as keys and the count of animals treated as values.
 */
fun countAnimals(animalDict: Map<String, Int>): Map<String, Int> {
/**
 * This function counts the number of each type of animal that a veterinarian has treated.
 *
 * @param animalDict A dictionary containing the animal as keys and the number of animals treated as values.
 * @return A dictionary containing the animal as keys and the count of animals treated as values.
 */
fun countAnimals(animalDict: Map<String, Int>): Map<String, Int> {

    val animalCount = mutableMapOf<String, Int>()

    for ((animal, count) in animalDict) {
        for (i in 0 until count) {
            if (animalCount.containsKey(animal)) {
                animalCount[animal] = animalCount[animal]!! + 1
            } else {
                animalCount[animal] = 1
            }
        }
    }

    return animalCount
}