title: Counting the amount of occurrences in a list of tuples
body: <p>I am fairly new to python, but I haven't been able to find a solution to my problem anywhere.</p>
  
  <p>I want to count the occurrences of a string inside a list of tuples.</p>
  
  <p>Here is the list of tuples:</p>
  
  <pre><code>list1 = [
           ('12392', 'some string', 'some other string'),
           ('12392', 'some new string', 'some other string'),
           ('7862', None, 'some other string')
          ]
  </code></pre>
  
  <p>I've tried this but it just prints 0</p>
  
  <pre><code>for entry in list1:
      print list1.count(entry[0])
  </code></pre>
  
  <p>As the same ID occurs twice in the list, this should return:</p>
  
  <pre><code>2
  1
  </code></pre>
  
  <p>I also tried to increment a counter for each occurrence of the same ID but couldn't quite grasp how to write it.</p>
  
  <p>*EDIT:
  Using Eumiro's awesome answer. I just realized that I didn't explain the whole problem.
  I actually need the total amount of entries which has a value more than 1. But if I try doing: </p>
  
  <pre><code>for name, value in list1:
  
      if value &gt; 1:
          print value
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>ValueError: Too many values to unpack
  </code></pre>