Easy Python Solution
Code\n\nfrom collections import Counter\n\nclass Solution:\n    def countAnagrams(self, s: str) -> int:\n        s = s.split(" ")\n\n        answer = 1\n       
# Code\n```\nfrom collections import Counter\n\nclass Solution:\n    def countAnagrams(self, s: str) -> int:\n        s = s.split(" ")\n\n        answer = 1\n        for i in s:\n            answer = answer * self.permutations(i)\n        \n        return answer % ((10 ** 9) + 7)\n    \n    def permutations(self, s):\n        count = Counter(s)\n\n        permutations = factorial(len(s))\n        repititions = 1\n\n        for i in count:\n            repititions *= factorial(count[i])\n\n        return permutations // repititions\n```
['Python3']