title: How to get unique values with respective occurrence count from a list in Python?
body: <p>I have a list which has repeating items and I want a list of the unique items with their frequency. </p>
  
  <p>For example, I have <code>['a', 'a', 'b', 'b', 'b']</code>, and I want <code>[('a', 2), ('b', 3)]</code>.</p>
  
  <p>Looking for a simple way to do this without looping twice. </p>