Beats 99% - Easy Python Solution
`\nclass Solution:\n    def digitCount(self, num: str) -> bool:\n        checked = set()\n        i = 0\n        while i < len(num):\n            if num[i] not 
```\nclass Solution:\n    def digitCount(self, num: str) -> bool:\n        checked = set()\n        i = 0\n        while i < len(num):\n            if num[i] not in checked:\n                count = num.count(str(i))\n                if int(num[i]) != count:\n                    return False\n                else:\n                    checked.add(num[i])\n                    i += 1\n            else:\n                i += 1\n        \n        return True\n``
['Python']