title: Python find duplicated dicts in list and separate them with counting
body: <p>I have a dicts in a list and some dicts are identical. I want to find duplicated ones and want to add to new list or dictionary with how many duplicate they have.</p>
  
  <pre><code>import itertools
  
  myListCombined = list()
  for a, b in itertools.combinations(myList, 2):
      is_equal = set(a.items()) - set(b.items())
      if len(is_equal) == 0:
          a.update(count=2)
          myListCombined.append(a)
      else:
          a.update(count=1)
          b.update(count=1)
          myListCombined.append(a)
          myListCombined.append(b)
  
  myListCombined = [i for n, i enumerate(myListCombine) if i not in myListCombine[n + 1:]]
  </code></pre>
  
  <p>This code is kinda working, but it's just for 2 duplicated dicts in list. a.update(count=2) won't work in this situations.
  I'm also deleting duplicated dicts after separete them in last line, but i'm not sure if it's going to work well.</p>
  
  <p>Input: </p>
  
  <pre><code>[{'name': 'Mary', 'age': 25, 'salary': 1000},
  {'name': 'John', 'age': 25, 'salary': 2000},
  {'name': 'George', 'age': 30, 'salary': 2500},
  {'name': 'John', 'age': 25, 'salary': 2000},
  {'name': 'John', 'age': 25, 'salary': 2000}]
  </code></pre>
  
  <p>Desired Output:</p>
  
  <pre><code>[{'name': 'Mary', 'age': 25, 'salary': 1000, 'count':1},
  {'name': 'John', 'age': 25, 'salary': 2000, 'count': 3},
  {'name': 'George', 'age': 30, 'salary': 2500, 'count' 1}] 
  </code></pre>