Easy Python Solution
\ndef 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    
```\ndef 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```
['Python', 'Python3']