wordcount is a cli tool that counts the number of words from input sentence and outputs TOP 3 words in descending order.
wordcount [sentence]
$ wordcount "dog dog dog. cat. fish fish. go go go go."
go
dog
fish
$ echo "dog dog dog. cat. fish fish. go go go go." | wordcount
go
dog
fish