/**
 * Given a start, end and step, this function counts a specific animal 
 * within the range using the step parameter.
 * 
 * @param start The starting number of the range.
 * @param end The ending number of the range.
 * @param step The step size to use while counting.
 * @param animal The name of the animal to count.
 * @return The total count of the specified animal within the range.
 */
fun countAnimals(start: Int, end: Int, step: Int, animal: String): Int {

    var count = 0
    for (i in start until end step step) {
        // Assuming you want to count the specified animal, not always set it to "dog"
        if (animal == "dog") {
            count++
        }
    }
    return count
}
/**
 * Given a start, end and step, this function counts a specific animal 
 * within the range using the step parameter.
 * 
 * @param start The starting number of the range.
 * @param end The ending number of the range.
 * @param step The step size to use while counting.
 * @param animal The name of the animal to count.
 * @return The total count of the specified animal within the range.
 */
fun countAnimals(start: Int, end: Int, step: Int, animal: String): Int {
/**
 * Given a start, end and step, this function counts a specific animal 
 * within the range using the step parameter.
 * 
 * @param start The starting number of the range.
 * @param end The ending number of the range.
 * @param step The step size to use while counting.
 * @param animal The name of the animal to count.
 * @return The total count of the specified animal within the range.
 */
fun countAnimals(start: Int, end: Int, step: Int, animal: String): Int {

    var count = 0
    for (i in start until end step step) {
        // Assuming you want to count the specified animal, not always set it to "dog"
        if (animal == "dog") {
            count++
        }
    }
    return count
}