/**
 * Counts the number of occurrences of a target element in a given list.
 *
 * @param lst The input list.
 * @param target The target element to count.
 * @return The number of occurrences of the target element in the list.
 */
fun countOccurrences(lst: List<Any>, target: Any): Int {

    var count = 0
    for (item in lst) {
        if (item == target) {
            count++
        }
    }
    return count
}
/**
 * Counts the number of occurrences of a target element in a given list.
 *
 * @param lst The input list.
 * @param target The target element to count.
 * @return The number of occurrences of the target element in the list.
 */
fun countOccurrences(lst: List<Any>, target: Any): Int {
/**
 * Counts the number of occurrences of a target element in a given list.
 *
 * @param lst The input list.
 * @param target The target element to count.
 * @return The number of occurrences of the target element in the list.
 */
fun countOccurrences(lst: List<Any>, target: Any): Int {

    var count = 0
    for (item in lst) {
        if (item == target) {
            count++
        }
    }
    return count
}