Python solution
```\ndef largestWordCount(self, messages: List[str], senders: List[str]) -> str:\n        hashmap = defaultdict(int)\n        \n        for i in range(len(messa
```\ndef largestWordCount(self, messages: List[str], senders: List[str]) -> str:\n        hashmap = defaultdict(int)\n        \n        for i in range(len(messages)):\n            hashmap[senders[i]] += len(messages[i].split(" "))\n        \n\t\t# (hashmap.get(x),x) -> sort by frequency of words used or if frequency is same sort by the sender name\n        result = sorted(hashmap.keys(), key=lambda x: (hashmap.get(x), x), reverse = True)\n        \n        return result[0]
['Sorting']