easy python solution
\ndef countAnagrams(self, s: str) -> int:\n        res=1\n        for i in s.split():\n            a=Counter(i)\n            l=factorial(len(i))\n            \n
```\ndef countAnagrams(self, s: str) -> int:\n        res=1\n        for i in s.split():\n            a=Counter(i)\n            l=factorial(len(i))\n            \n            for k,v in a.items():\n               l=l//factorial(v)\n            res=(res*l)\n        return res%((10**9)+7)\n```
[]