/**
 * This function counts the number of elements in a list that are set to null.
 *
 * @param lst A list containing elements.
 * @return The number of elements set to null in the list.
 */
fun countNoneElements(lst: List<Any?>): Int {

    // Initialize a counter variable
    var count = 0

    // Iterate through the list and obtain both index and value
    for ((index, value) in lst.withIndex()) {
        // Check if the value is equal to null
        if (value == null) {
            // Increment the counter if the value is null
            count++
        }
    }

    return count
}
/**
 * This function counts the number of elements in a list that are set to null.
 *
 * @param lst A list containing elements.
 * @return The number of elements set to null in the list.
 */
fun countNoneElements(lst: List<Any?>): Int {
/**
 * This function counts the number of elements in a list that are set to null.
 *
 * @param lst A list containing elements.
 * @return The number of elements set to null in the list.
 */
fun countNoneElements(lst: List<Any?>): Int {

    // Initialize a counter variable
    var count = 0

    // Iterate through the list and obtain both index and value
    for ((index, value) in lst.withIndex()) {
        // Check if the value is equal to null
        if (value == null) {
            // Increment the counter if the value is null
            count++
        }
    }

    return count
}