title: Python count items in dict value that is a list
body: <p>Python 3.3, a dictionary with key-value pairs in this form. </p>
  
  <pre><code>d = {'T1': ['eggs', 'bacon', 'sausage']}
  </code></pre>
  
  <p>The values are lists of variable length, and I need to iterate over the list items. This works: </p>
  
  <pre><code>count = 0
  for l in d.values():
     for i in l: count += 1
  </code></pre>
  
  <p>But it's ugly. There must be a more Pythonic way, but I can't seem to find it.</p>
  
  <pre><code>len(d.values()) 
  </code></pre>
  
  <p>produces 1. It's 1 list (DUH). Attempts with Counter from <a href="https://stackoverflow.com/questions/11751081/python-count-of-items-in-a-dictionary-of-lists">here</a> give 'unhashable type' errors. </p>