title: Counting 2d lists in python
body: <p>How can I count the number of items that are 'hit' in this 2d list??</p>
  
  <pre><code>grid = [['hit','miss','miss','hit','miss'],
       ['miss','miss','hit','hit','miss'],
       ['miss','miss','miss','hit','hit'],
       ['miss','miss','miss','hit','miss'],
       ['hit','miss','miss','miss','miss']]
  
  battleships = 0
  for i in grid:
      if i == "hit":
      battleships = battleships + 1
  print battleships
  </code></pre>
  
  <p>I know that code is wrong, but it gives an idea of what I want to do I hope??</p>
  
  <p>thanks</p>