im new to python and trying various libraries
from collections import Counter
print(Counter('like baby baby baby ohhh baby baby like nooo'))
When i print this the output I receive is:
Counter({'b': 10, ' ': 8, 'a': 5, 'y': 5, 'o': 4, 'h': 3, 'l': 2, 'i': 2, 'k': 2, 'e': 2, 'n': 1})
But I want to find the count of unique words:
#output example
({'like': 2, 'baby': 5, 'ohhh': 1, 'nooo': 1}, ('baby', 5))
How can I do this, additionally can I do this without the counter library using loops?