/**
 * Given a list of elements (nurseList) and a specific element (element),
 * count how many times the element appears in the list.
 *
 * @param nurseList The list of elements to search from.
 * @param element The specific element to count.
 * @return The count of how many times the element appears in the list.
 */
fun countElements(nurseList: List<Any>, element: Any): Int {

    var count = 0
    for (item in nurseList) {
        if (item == element) {
            count++
        }
    }
    return count
}
/**
 * Given a list of elements (nurseList) and a specific element (element),
 * count how many times the element appears in the list.
 *
 * @param nurseList The list of elements to search from.
 * @param element The specific element to count.
 * @return The count of how many times the element appears in the list.
 */
fun countElements(nurseList: List<Any>, element: Any): Int {
/**
 * Given a list of elements (nurseList) and a specific element (element),
 * count how many times the element appears in the list.
 *
 * @param nurseList The list of elements to search from.
 * @param element The specific element to count.
 * @return The count of how many times the element appears in the list.
 */
fun countElements(nurseList: List<Any>, element: Any): Int {

    var count = 0
    for (item in nurseList) {
        if (item == element) {
            count++
        }
    }
    return count
}