/**
 * Given a list of numbers and two integers start and end, this function counts the number of elements in the list that
 * fall within the range [start, end).
 *
 * @param lst A list of numbers.
 * @param start The starting value of the range (inclusive).
 * @param end The ending value of the range (exclusive).
 * @return The count of elements in the list that fall within the given range.
 *
 * Example:
 * countInRange(listOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), 3, 8) // Output: 5
 */
fun countInRange(lst: List<Int>, start: Int, end: Int): Int {

    // Please implement the code to solve the exercise below this comment.
    // The input list will always contain numerical values.
    // The start and end integers represent a range of values to consider for counting.
    return lst.count { it in start until end }
}
/**
 * Given a list of numbers and two integers start and end, this function counts the number of elements in the list that
 * fall within the range [start, end).
 *
 * @param lst A list of numbers.
 * @param start The starting value of the range (inclusive).
 * @param end The ending value of the range (exclusive).
 * @return The count of elements in the list that fall within the given range.
 *
 * Example:
 * countInRange(listOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), 3, 8) // Output: 5
 */
fun countInRange(lst: List<Int>, start: Int, end: Int): Int {
/**
 * Given a list of numbers and two integers start and end, this function counts the number of elements in the list that
 * fall within the range [start, end).
 *
 * @param lst A list of numbers.
 * @param start The starting value of the range (inclusive).
 * @param end The ending value of the range (exclusive).
 * @return The count of elements in the list that fall within the given range.
 *
 * Example:
 * countInRange(listOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), 3, 8) // Output: 5
 */
fun countInRange(lst: List<Int>, start: Int, end: Int): Int {

    // Please implement the code to solve the exercise below this comment.
    // The input list will always contain numerical values.
    // The start and end integers represent a range of values to consider for counting.
    return lst.count { it in start until end }
}