/**
 * This function counts the occurrences of numbers in a list that are divisible by a given divisor.
 *
 * @param data A list of integers.
 * @param divisor The number to divide the numbers in the list with.
 * @return The count of numbers divisible by the divisor.
 */
fun countDivisibleBy(data: List<Int>, divisor: Int): Int {

    var count = 0

    // Iterate through each number in the list
    for (number in data) {
        // Check if the number is divisible by the divisor
        if (number % divisor == 0) {
            // Increment the count
            count++
        }
    }

    return count
}

// Example usage
/**
 * This function counts the occurrences of numbers in a list that are divisible by a given divisor.
 *
 * @param data A list of integers.
 * @param divisor The number to divide the numbers in the list with.
 * @return The count of numbers divisible by the divisor.
 */
fun countDivisibleBy(data: List<Int>, divisor: Int): Int {
/**
 * This function counts the occurrences of numbers in a list that are divisible by a given divisor.
 *
 * @param data A list of integers.
 * @param divisor The number to divide the numbers in the list with.
 * @return The count of numbers divisible by the divisor.
 */
fun countDivisibleBy(data: List<Int>, divisor: Int): Int {

    var count = 0

    // Iterate through each number in the list
    for (number in data) {
        // Check if the number is divisible by the divisor
        if (number % divisor == 0) {
            // Increment the count
            count++
        }
    }

    return count
}

// Example usage