Simple solution
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```swift []\nclass Solution {\n    func winningPlayerCount(_ n: Int, _ pick: [[Int]]) -> Int {\n        var d1:[Int:[Int]] = [:]\n        var ans = 0\n        for item in pick{\n            let key = item[0]\n            var arr:[Int] = []\n            for value in pick{\n                if(value[0] == key){\n                    arr.append(value[1])\n                }\n            }\n            d1[key] = arr\n        }\n        //print(d1)\n        for (player,value) in d1{\n            var d:[Int:Int] = [:]\n            for i in value{\n                d[i] = (d[i] ?? 0) + 1\n            }\n            if(d.values.max()! > player){\n                ans += 1\n            }\n        }\n        return ans\n    }\n}\n```
['Swift']