/**
 * This function counts the number of items within a given range.
 *
 * @param start the starting point of the range (inclusive)
 * @param stop the ending point of the range (exclusive)
 * @return the number of items within the range
 */
fun countItemsInRange(start: Int, stop: Int): Int {

    var count = 0  // Initialize count variable
    
    // Iterate through the range and count the items
    for (item in start until stop) {
        count++
    }
    
    return count
}
/**
 * This function counts the number of items within a given range.
 *
 * @param start the starting point of the range (inclusive)
 * @param stop the ending point of the range (exclusive)
 * @return the number of items within the range
 */
fun countItemsInRange(start: Int, stop: Int): Int {
/**
 * This function counts the number of items within a given range.
 *
 * @param start the starting point of the range (inclusive)
 * @param stop the ending point of the range (exclusive)
 * @return the number of items within the range
 */
fun countItemsInRange(start: Int, stop: Int): Int {

    var count = 0  // Initialize count variable
    
    // Iterate through the range and count the items
    for (item in start until stop) {
        count++
    }
    
    return count
}