title: Walking through different directories, but collections.Counter values are the same
body: <p>I'm using the collection.Counter function to create a dictionary of paths to its listing of its mime types in order. It's a great little module, however the Counter doesn't change it's values from path to path.</p>
  
  <p>I have a dictionary called package_mime_types that each entry looks like this:</p>
  
  <pre><code> package_mime_types['/a/path/to/somewhere'] = [('text/plain'),('text/plain'),('application/msword')]...
  </code></pre>
  
  <p>As you can imagine, the values in that dictionary are very long. I'm trying to convert it to a listing like this:</p>
  
  <pre><code>package_mime_types['/a/path/to/somewhere'] = ['text/plain':780, 'application/msword':400, 'audio/mp3':30]
  </code></pre>
  
  <p>This is my little iteration that's supposed to do that:</p>
  
  <pre><code>    for package_path, mime_types_list in package_mime_types.items():
          c = collections.Counter(mime_types_list)
  
          package_mime_types[package_path] = c
      return package_mime_types
  </code></pre>
  
  <p>The end result works, but all the Counter arrays are the exact same for each path.</p>
  
  <pre><code>/path1/ relates to Counter({'text/plain': 2303, 'audio/x-wav': 90, 'text/html': 17,       'application/msword': 17, 'application/x-trash': 6, 'application/x-tar': 4,    'application/xml': 1, 'text/x-sh': 1})
  /path2/ relates to Counter({'text/plain': 2303, 'audio/x-wav': 90, 'text/html': 17, 'application/msword': 17, 'application/x-trash': 6, 'application/x-tar': 4, 'application/xml': 1, 'text/x-sh': 1})
  /path3/ relates to Counter({'text/plain': 2303, 'audio/x-wav': 90, 'text/html': 17, 'application/msword': 17, 'application/x-trash': 6, 'application/x-tar': 4, 'application/xml': 1, 'text/x-sh': 1})
  /path4/ relates to Counter({'text/plain': 2303, 'audio/x-wav': 90, 'text/html': 17, 'application/msword': 17, 'application/x-trash': 6, 'application/x-tar': 4, 'application/xml': 1, 'text/x-sh': 1})
  /path5/ relates to Counter({'text/plain': 2303, 'audio/x-wav': 90, 'text/html': 17, 'application/msword': 17, 'application/x-trash': 6, 'application/x-tar': 4, 'application/xml': 1, 'text/x-sh': 1})
  </code></pre>
  
  <p>Am I missing something with using the Counter?</p>