/**
 * This function counts the numbers in the given range with the specified step size.
 *
 * @param start The starting number of the range.
 * @param end The ending number (exclusive) of the range.
 * @param step The increment between numbers in the range.
 * @return The count of numbers in the range with the specified step size.
 */
fun countNumbers(start: Int, end: Int, step: Int): Int {

    var count = 0

    // Check if the step value is positive or negative
    if (step > 0) {
        for (num in start until end step step) {
            count++
        }
    } else if (step < 0) {
        for (num in start until end step step) {
            count++
        }
    }

    return count
}
/**
 * This function counts the numbers in the given range with the specified step size.
 *
 * @param start The starting number of the range.
 * @param end The ending number (exclusive) of the range.
 * @param step The increment between numbers in the range.
 * @return The count of numbers in the range with the specified step size.
 */
fun countNumbers(start: Int, end: Int, step: Int): Int {
/**
 * This function counts the numbers in the given range with the specified step size.
 *
 * @param start The starting number of the range.
 * @param end The ending number (exclusive) of the range.
 * @param step The increment between numbers in the range.
 * @return The count of numbers in the range with the specified step size.
 */
fun countNumbers(start: Int, end: Int, step: Int): Int {

    var count = 0

    // Check if the step value is positive or negative
    if (step > 0) {
        for (num in start until end step step) {
            count++
        }
    } else if (step < 0) {
        for (num in start until end step step) {
            count++
        }
    }

    return count
}