title: Count the elements in a csv file with python
body: <p>I got a question regarding counting the number of times a specific number belongs to a specific element.</p>
  
  <p>Let me explain it better by use of an example. First I got this situation within my csv file:
  <img src="https://i.stack.imgur.com/sfP0e.png" alt="Capture from my csv file"></p>
  
  <p>What I want is that within Python I need to have the following results:</p>
  
  <ul>
  <li>1 with 1200 is 4 (times visible)</li>
  <li>1 with 5600 is 5 (times visible)</li>
  <li>2 with 1400 is 3 (times visible)</li>
  <li>2 with 1600 is 2 (times visible)</li>
  </ul>
  
  <p>Can anyone help me getting this result?</p>
  
  <p>Code that I have untill now is just loading the csv:</p>
  
  <pre><code>with open('calculate_ids.csv') as csvfile:
       reader = csv.reader(csvfile, delimiter=',', quotechar='|')
  </code></pre>