/**
 * Counts the number of times a given element appears in a dancer tuple.
 *
 * @param dancerTuple The tuple containing dancer names.
 * @param elementToCount The element to be counted.
 * @return The count of occurrences of the given element in the dancer tuple.
 */
fun countOccurrences(dancerTuple: List<String>, elementToCount: String): Int {

    var count = 0
    for (dancer in dancerTuple) {
        if (dancer == elementToCount) {
            count++
        }
    }
    return count
}
/**
 * Counts the number of times a given element appears in a dancer tuple.
 *
 * @param dancerTuple The tuple containing dancer names.
 * @param elementToCount The element to be counted.
 * @return The count of occurrences of the given element in the dancer tuple.
 */
fun countOccurrences(dancerTuple: List<String>, elementToCount: String): Int {
/**
 * Counts the number of times a given element appears in a dancer tuple.
 *
 * @param dancerTuple The tuple containing dancer names.
 * @param elementToCount The element to be counted.
 * @return The count of occurrences of the given element in the dancer tuple.
 */
fun countOccurrences(dancerTuple: List<String>, elementToCount: String): Int {

    var count = 0
    for (dancer in dancerTuple) {
        if (dancer == elementToCount) {
            count++
        }
    }
    return count
}