Simple Swift Solution
Code
![Screenshot 2025-03-30 at 12.31.40 PM.png](https://assets.leetcode.com/users/images/14d1ba99-1b00-4b99-97f6-855e3d471358_1743328320.6824975.png)


# Code
```swift []
class Solution {
    func winningPlayerCount(_ n: Int, _ pick: [[Int]]) -> Int {
        var players = Array(repeating: [Int:Int](), count: n), win = 0
        for p in pick {
            players[p[0]][p[1], default: 0] += 1
        }
        for i in 0..<n {
            for (_, value) in players[i] {
                if value > i {
                    win += 1
                    break
                }
            }
        }
        return win
    }
}
```
['Swift']