Easy Python3 Solution using Count
\n# Code\n\nclass Solution:\n    def digitCount(self, num: str) -> bool:\n        for i in range(len(num)):\n            if int(num[i]) != num.count(str(i)):\n 
\n# Code\n```\nclass Solution:\n    def digitCount(self, num: str) -> bool:\n        for i in range(len(num)):\n            if int(num[i]) != num.count(str(i)):\n                return False\n        return True\n```
['Python3']