title: How do I count unique words using counter library in python?
body: <p>im new to python and trying various libraries</p>
  
  <pre class="lang-py prettyprint-override"><code>from collections import Counter
  print(Counter('like baby baby baby ohhh baby baby like nooo'))
  </code></pre>
  
  <p>When i print this the output I receive is:</p>
  
  <pre class="lang-py prettyprint-override"><code>Counter({'b': 10, ' ': 8, 'a': 5, 'y': 5, 'o': 4, 'h': 3, 'l': 2, 'i': 2, 'k': 2, 'e': 2, 'n': 1})
  </code></pre>
  
  <p>But I want to find the count of unique words:</p>
  
  <pre class="lang-py prettyprint-override"><code>#output example
  ({'like': 2, 'baby': 5, 'ohhh': 1, 'nooo': 1}, ('baby', 5))
  </code></pre>
  
  <p>How can I do this, additionally can I do this without the counter library using loops?</p>