https://leetcode.com/problems/check-if-number-has-equal-digit-count-and-digit-value


Success


```python
class Solution:
    def digitCount(self, num: str) -> bool:
        num = list(num)
        for index, value in enumerate(num):
            if num.count(str(index)) != int(value):
                return False
        return True
```
