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