/**
 * This exercise requires creating a dictionary with keys as numbers greater than a given limit.
 * The function takes a list of numbers and a limit as input and returns a dictionary with keys being numbers greater
 * than the specified limit and values as their respective counts in the list.
 *
 * @param numList A list of numbers.
 * @param limit The lower-bound limit for numbers to consider.
 * @return A dictionary with keys as numbers greater than the limit and values as their counts in the list.
 */
fun createDictionaryGreaterThan(numList: List<Int>, limit: Int): Map<Int, Int> {

    val greaterThanDict = mutableMapOf<Int, Int>()

    for (num in numList) {
        if (num > limit) {
            if (greaterThanDict.containsKey(num)) {
                greaterThanDict[num] = greaterThanDict[num]!! + 1
            } else {
                greaterThanDict[num] = 1
            }
        }
    }

    return greaterThanDict
}
/**
 * This exercise requires creating a dictionary with keys as numbers greater than a given limit.
 * The function takes a list of numbers and a limit as input and returns a dictionary with keys being numbers greater
 * than the specified limit and values as their respective counts in the list.
 *
 * @param numList A list of numbers.
 * @param limit The lower-bound limit for numbers to consider.
 * @return A dictionary with keys as numbers greater than the limit and values as their counts in the list.
 */
fun createDictionaryGreaterThan(numList: List<Int>, limit: Int): Map<Int, Int> {
/**
 * This exercise requires creating a dictionary with keys as numbers greater than a given limit.
 * The function takes a list of numbers and a limit as input and returns a dictionary with keys being numbers greater
 * than the specified limit and values as their respective counts in the list.
 *
 * @param numList A list of numbers.
 * @param limit The lower-bound limit for numbers to consider.
 * @return A dictionary with keys as numbers greater than the limit and values as their counts in the list.
 */
fun createDictionaryGreaterThan(numList: List<Int>, limit: Int): Map<Int, Int> {

    val greaterThanDict = mutableMapOf<Int, Int>()

    for (num in numList) {
        if (num > limit) {
            if (greaterThanDict.containsKey(num)) {
                greaterThanDict[num] = greaterThanDict[num]!! + 1
            } else {
                greaterThanDict[num] = 1
            }
        }
    }

    return greaterThanDict
}