/**
 * This exercise aims to test your understanding of list manipulation and the count() method.
 * You are given a list 'athlete' representing the scores achieved by a player, and a value to append to it.
 * Your task is to append the given value to the 'athlete' list, and then count the number of occurrences of that value.
 *
 * Complete the code below to solve the exercise:
 */
fun appendCount(athlete: MutableList<Int>, value: Int): Int {

    athlete.add(value) // Append the given value to the 'athlete' list

    val count = athlete.count { it == value } // Count the number of occurrences of the given value

    return count
}
/**
 * This exercise aims to test your understanding of list manipulation and the count() method.
 * You are given a list 'athlete' representing the scores achieved by a player, and a value to append to it.
 * Your task is to append the given value to the 'athlete' list, and then count the number of occurrences of that value.
 *
 * Complete the code below to solve the exercise:
 */
fun appendCount(athlete: MutableList<Int>, value: Int): Int {
/**
 * This exercise aims to test your understanding of list manipulation and the count() method.
 * You are given a list 'athlete' representing the scores achieved by a player, and a value to append to it.
 * Your task is to append the given value to the 'athlete' list, and then count the number of occurrences of that value.
 *
 * Complete the code below to solve the exercise:
 */
fun appendCount(athlete: MutableList<Int>, value: Int): Int {

    athlete.add(value) // Append the given value to the 'athlete' list

    val count = athlete.count { it == value } // Count the number of occurrences of the given value

    return count
}