/**
 * This function takes a nested list 'data' and counts the number
 * of times the 'target' value appears in the list.
 *
 * @param data nested list containing integer values
 * @param target integer value to count occurrences of
 * @return The count of occurrences of 'target' in 'data'
 */
fun countOccurrences(data: List<List<Int>>, target: Int): Int {

    var count = 0
    for (sublist in data) {
        for (value in sublist) {
            if (value == target) {
                count++
            }
        }
    }
    return count
}
/**
 * This function takes a nested list 'data' and counts the number
 * of times the 'target' value appears in the list.
 *
 * @param data nested list containing integer values
 * @param target integer value to count occurrences of
 * @return The count of occurrences of 'target' in 'data'
 */
fun countOccurrences(data: List<List<Int>>, target: Int): Int {
/**
 * This function takes a nested list 'data' and counts the number
 * of times the 'target' value appears in the list.
 *
 * @param data nested list containing integer values
 * @param target integer value to count occurrences of
 * @return The count of occurrences of 'target' in 'data'
 */
fun countOccurrences(data: List<List<Int>>, target: Int): Int {

    var count = 0
    for (sublist in data) {
        for (value in sublist) {
            if (value == target) {
                count++
            }
        }
    }
    return count
}