/**
 * This function counts the number of occurrences of a specific object in the game data.
 *
 * @param gameData A list containing game data.
 * @param objectName The name of the object to be counted.
 * @return The number of occurrences of the object in the game data.
 */
fun countObjectsInGame(gameData: List<String>, objectName: String): Int {

    var count = 0
    for (obj in gameData) {
        if (obj == objectName) {
            count++
        }
    }
    return count
}
/**
 * This function counts the number of occurrences of a specific object in the game data.
 *
 * @param gameData A list containing game data.
 * @param objectName The name of the object to be counted.
 * @return The number of occurrences of the object in the game data.
 */
fun countObjectsInGame(gameData: List<String>, objectName: String): Int {
/**
 * This function counts the number of occurrences of a specific object in the game data.
 *
 * @param gameData A list containing game data.
 * @param objectName The name of the object to be counted.
 * @return The number of occurrences of the object in the game data.
 */
fun countObjectsInGame(gameData: List<String>, objectName: String): Int {

    var count = 0
    for (obj in gameData) {
        if (obj == objectName) {
            count++
        }
    }
    return count
}