/**
 * Append multiple elements to a list and count the occurrence of a specific element.
 *
 * @param lst the list to which elements will be appended
 * @param elements the elements to be appended
 * @return the number of times the specific element appears in the list
 */
fun appendElements(lst: MutableList<String>, elements: List<String>): Int {

    elements.forEach { element ->
        lst.add(element)
    }

    val count = lst.count { it == "specific_element" }

    return count
}
/**
 * Append multiple elements to a list and count the occurrence of a specific element.
 *
 * @param lst the list to which elements will be appended
 * @param elements the elements to be appended
 * @return the number of times the specific element appears in the list
 */
fun appendElements(lst: MutableList<String>, elements: List<String>): Int {
/**
 * Append multiple elements to a list and count the occurrence of a specific element.
 *
 * @param lst the list to which elements will be appended
 * @param elements the elements to be appended
 * @return the number of times the specific element appears in the list
 */
fun appendElements(lst: MutableList<String>, elements: List<String>): Int {

    elements.forEach { element ->
        lst.add(element)
    }

    val count = lst.count { it == "specific_element" }

    return count
}