/**
 * This function takes a list of positions and a specific position, and returns the number of times the specific position appears in the list.
 *
 * @param positions a list of positions
 * @param position a specific position to count
 * @return count the number of times the specific position appears in the list
 */
fun countPositions(positions: List<String>, position: String): Int {

    val count = positions.count { it == position }
    return count
}

val athletePositions = listOf("forward", "midfielder", "...")
/**
 * This function takes a list of positions and a specific position, and returns the number of times the specific position appears in the list.
 *
 * @param positions a list of positions
 * @param position a specific position to count
 * @return count the number of times the specific position appears in the list
 */
fun countPositions(positions: List<String>, position: String): Int {
/**
 * This function takes a list of positions and a specific position, and returns the number of times the specific position appears in the list.
 *
 * @param positions a list of positions
 * @param position a specific position to count
 * @return count the number of times the specific position appears in the list
 */
fun countPositions(positions: List<String>, position: String): Int {

    val count = positions.count { it == position }
    return count
}

val athletePositions = listOf("forward", "midfielder", "...")