Golang Solution
\n\n# Code\n\nfunc digitCount(num string) bool {   \n    mp:=make(map[int]int)    \n     for i:=len(num)-1;i>=0;i--{ \n        n,_:=strconv.Atoi(string(num[i]))
\n\n# Code\n```\nfunc digitCount(num string) bool {   \n    mp:=make(map[int]int)    \n     for i:=len(num)-1;i>=0;i--{ \n        n,_:=strconv.Atoi(string(num[i]))       \n        mp[n]++       \n     }\n     for i,v:=range num{\n        nu,_:=strconv.Atoi(string(v))\n        if nu!=mp[i]{\n            return false\n        }\n     }\n     return true\n\n    \n}\n```
['Go']