title: python dictionary count of unique values
body: <p>I have a problem with counting distinct values for each key in Python.</p>
  
  <p>I have a dictionary d like </p>
  
  <pre><code>[{"abc":"movies"}, {"abc": "sports"}, {"abc": "music"}, {"xyz": "music"}, {"pqr":"music"}, {"pqr":"movies"},{"pqr":"sports"}, {"pqr":"news"}, {"pqr":"sports"}]
  </code></pre>
  
  <p>I need to print number of distinct values per each key individually.</p>
  
  <p>That means I would want to print </p>
  
  <pre><code>abc 3
  xyz 1
  pqr 4
  </code></pre>
  
  <p>Please help. </p>
  
  <p>Thank you</p>