/**
 * This function takes a list of numbers as input and counts the number of even and odd numbers.
 * It uses short-circuiting with if-else and loop control statements to iterate through the list and count the numbers.
 */
fun countNumbers(numbers: List<Int>): Pair<Int, Int> {

    var evenCount = 0
    var oddCount = 0

    for (num in numbers) {
        if (num % 2 == 0) {  // Short-circuiting with if-else
            evenCount++
        } else {
            oddCount++
        }
    }

    return Pair(evenCount, oddCount)
}
/**
 * This function takes a list of numbers as input and counts the number of even and odd numbers.
 * It uses short-circuiting with if-else and loop control statements to iterate through the list and count the numbers.
 */
fun countNumbers(numbers: List<Int>): Pair<Int, Int> {
/**
 * This function takes a list of numbers as input and counts the number of even and odd numbers.
 * It uses short-circuiting with if-else and loop control statements to iterate through the list and count the numbers.
 */
fun countNumbers(numbers: List<Int>): Pair<Int, Int> {

    var evenCount = 0
    var oddCount = 0

    for (num in numbers) {
        if (num % 2 == 0) {  // Short-circuiting with if-else
            evenCount++
        } else {
            oddCount++
        }
    }

    return Pair(evenCount, oddCount)
}