/**
 * Given a list of numbers, return the count of numbers that are divisible by k.
 *
 * @param numbers A list of integers.
 * @param k An integer.
 * @return The count of numbers divisible by k.
 *
 * Example:
 * countNumbersDivisibleByK(listOf(10, 7, 21, 9, 4, 15), 3) -> 3
 * countNumbersDivisibleByK(listOf(1, 2, 3, 4, 5), 7) -> 0
 * countNumbersDivisibleByK(listOf(12, 15, 18, 21, 24, 27, 30), 5) -> 0
 */
fun countNumbersDivisibleByK(numbers: List<Int>, k: Int): Int {

    var count = 0
    for (num in numbers) {
        if (num % k == 0) {
            count++
        }
    }
    return count
}
/**
 * Given a list of numbers, return the count of numbers that are divisible by k.
 *
 * @param numbers A list of integers.
 * @param k An integer.
 * @return The count of numbers divisible by k.
 *
 * Example:
 * countNumbersDivisibleByK(listOf(10, 7, 21, 9, 4, 15), 3) -> 3
 * countNumbersDivisibleByK(listOf(1, 2, 3, 4, 5), 7) -> 0
 * countNumbersDivisibleByK(listOf(12, 15, 18, 21, 24, 27, 30), 5) -> 0
 */
fun countNumbersDivisibleByK(numbers: List<Int>, k: Int): Int {
/**
 * Given a list of numbers, return the count of numbers that are divisible by k.
 *
 * @param numbers A list of integers.
 * @param k An integer.
 * @return The count of numbers divisible by k.
 *
 * Example:
 * countNumbersDivisibleByK(listOf(10, 7, 21, 9, 4, 15), 3) -> 3
 * countNumbersDivisibleByK(listOf(1, 2, 3, 4, 5), 7) -> 0
 * countNumbersDivisibleByK(listOf(12, 15, 18, 21, 24, 27, 30), 5) -> 0
 */
fun countNumbersDivisibleByK(numbers: List<Int>, k: Int): Int {

    var count = 0
    for (num in numbers) {
        if (num % k == 0) {
            count++
        }
    }
    return count
}