title: python 2.7 - csv file pull data from 2 columns
body: <p>So I have a csv file and I need to find only the specific lines that match a criteria and then count how many occurrences of those lines are.</p>
  
  <p>Example file:</p>
  
  <pre><code>col1    col2    col3
  
  david1
  david2
  david3
  david4
  
  david1          sev5
  david1          sev5
  david1          sev4
  david2          sev5
  david2          sev1
  david3          sev5
  david3          sev2
  david3          sev2
  david4          sev1
  </code></pre>
  
  <p>The desired info I need is to only find lines that match for example:</p>
  
  <pre><code>david1 : sev5
  david1 : sev4
  david3 : sev2
  </code></pre>
  
  <p>And then give me a total of how many it has found.</p>
  
  <p>I've searched around using dictionaries and lists but for some reason I just don't understand how they could skip over certain sections of the file and then count specific lines that match a search.</p>
  
  <p>I very much still have my 'L' plates on python and some kind help would be appreciated. </p>
  
  <p>Thanks</p>