/**
 * Given a list of numbers and a threshold, this function returns the number of times the threshold is greater than each number in the list.
 *
 * @param numbers A list of numbers.
 * @param threshold An integer representing the threshold number.
 * @return An integer representing the number of times the threshold is greater than each number in the list.
 *
 * Example:
 * countMovesGreaterThan(listOf(1, 2, 3, 4, 5), 3) => 2
 * countMovesGreaterThan(listOf(10, 20, 30, 40, 50), 15) => 0
 */
fun countMovesGreaterThan(numbers: List<Int>, threshold: Int): Int {

    var count = 0

    for (number in numbers) {
        if (number < threshold) {
            count++
        }
    }

    return count
}
/**
 * Given a list of numbers and a threshold, this function returns the number of times the threshold is greater than each number in the list.
 *
 * @param numbers A list of numbers.
 * @param threshold An integer representing the threshold number.
 * @return An integer representing the number of times the threshold is greater than each number in the list.
 *
 * Example:
 * countMovesGreaterThan(listOf(1, 2, 3, 4, 5), 3) => 2
 * countMovesGreaterThan(listOf(10, 20, 30, 40, 50), 15) => 0
 */
fun countMovesGreaterThan(numbers: List<Int>, threshold: Int): Int {
/**
 * Given a list of numbers and a threshold, this function returns the number of times the threshold is greater than each number in the list.
 *
 * @param numbers A list of numbers.
 * @param threshold An integer representing the threshold number.
 * @return An integer representing the number of times the threshold is greater than each number in the list.
 *
 * Example:
 * countMovesGreaterThan(listOf(1, 2, 3, 4, 5), 3) => 2
 * countMovesGreaterThan(listOf(10, 20, 30, 40, 50), 15) => 0
 */
fun countMovesGreaterThan(numbers: List<Int>, threshold: Int): Int {

    var count = 0

    for (number in numbers) {
        if (number < threshold) {
            count++
        }
    }

    return count
}