Python Solution
Approach\n Describe your approach to solving the problem. First we have allocated a an empty string for storing the value. Now a loop upto length of the given s
# Approach\n<!-- Describe your approach to solving the problem. -->First we have allocated a an empty string for storing the value. Now a loop upto length of the given string is generated and stored the value of that place (count of that place in num string) if the new formed string is equal to the given sting nums, return True else False.\n# Code\n```\nclass Solution(object):\n    def digitCount(self, num):\n        """\n        :type num: str\n        :rtype: bool\n        """\n        s=\'\'\n        for i in range(len(num)):\n            s+=str(num.count(str(i)))\n        if num==s:\n            return True\n        else:\n            return False\n```
['Python']