title: How can I count each dictionary value output in Python in the following code example?
body: <p>I'm learning to play with lists, tuples and dictionaries in Python (2.7), and to convert dictionaries to lists and to reference them, but am experiencing some difficulties in understanding how I might add a count number to specific values that I am retrieving from dictionaries.</p>
  
  <p>I start with this code as follows:</p>
  
  <pre><code>users = {
      'Participants': [ 
          {'first_name':  'Jerry', 'last_name' : 'Johnson'},
          {'first_name' : 'Blaine', 'last_name' : 'Diamond'},
          {'first_name' : 'Ginny', 'last_name' : 'Gelspy'},
          {'first_name' : 'LG', 'last_name' : 'Murphy'}
       ],
      'Leaders': [
          {'first_name' : 'TJ', 'last_name' : 'Knight'},
          {'first_name' : 'Jasper', 'last_name' : 'Red'}
       ]
  }
  
  users_list = users.items()  # converts users dict to a list
  for key, data in users_list: 
      print key
      for value in data:
          print "-", value["first_name"].upper(), value["last_name"].upper(), "-", len(value["first_name"] + value["last_name"])
  </code></pre>
  
  <p>My current output is as follows:</p>
  
  <pre><code>Participants
  - JERRY JOHNSON - 12
  - BLAINE DIAMOND - 13
  - GINNY GELSPY - 11
  - LG MURPHY - 8
  Leaders
  - TJ KNIGHT - 8
  - JASPER RED - 9
  </code></pre>
  
  <p>However, I'd like to add a count to each participant or leader, so the output would instead read:</p>
  
  <pre><code>Participants
  1 - JERRY JOHNSON - 12
  2 - BLAINE DIAMOND - 13
  3 - GINNY GELSPY - 11
  4 - LG MURPHY - 8
  Leaders
  1 - TJ KNIGHT - 8
  2 - JASPER RED - 9
  </code></pre>
  
  <p>in this format:</p>
  
  <pre><code>&lt;dictionary name&gt;
  &lt;count&gt; - &lt;FULL NAME IN CAPS&gt; - &lt;char count in full name no space included&gt;
  </code></pre>
  
  <p>I did read that dictionaries in python are unordered and cannot be referenced in regards to index, but is there a simple way to setup a counter or to count each output in a way that I'm not seeing?</p>
  
  <p>Thank you so much for any insight provided!</p>