brute Force 🎊
Code
# Code
```cpp []
class Solution {
public:
    bool digitCount(string num) {
        for (int i = 0; i < num.length(); i++) {
            int count = 0;
            int value = num[i] - '0';
            for (int j = 0; j < num.length(); j++) {
                if (i == num[j] - '0') {
                    count += 1;
                }
            }

            if (count != value) {
                return false;
            }
        }
        return true;
    }
};
```
['String', 'Counting', 'C++']