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