title: How many items in a dictionary share the same value in Python
body: <p>Is there a way to see how many items in a dictionary share the same value in Python?</p>
  
  <p>Let's say that I have a dictionary like:</p>
  
  <pre><code>{"a": 600, "b": 75, "c": 75, "d": 90}
  </code></pre>
  
  <p>I'd like to get a resulting dictionary like:</p>
  
  <pre><code>{600: 1, 75: 2, 90: 1}
  </code></pre>
  
  <p>My first naive attempt would be to just use a nested-for loop and for each value then I would iterate over the dictionary again. Is there a better way to do this?</p>