title: Count occurrences of list element in nested list
body: <p>I have a list like this:</p>
  <pre><code>list_all = [['car', '123464', '4322445'],   ['car', '64346', '643267'], ['bicycle','1357','78543'], 
          ['bicycle', '75325', '75425'],
          ['car', '8652', '652466'], ['taxi', '653367', '63226'], 
          ['taxi', '96544', '22267'], ['taxi', '86542222', '54433'],     
          ['motorcycle', '675422', '56312'], ['motorcycle', '53225', '88885'], 
          ['motorcycle', '773345', '9977'], 
          ['motorcycle', '3466', '987444']]
  </code></pre>
  <p>I want the result like this:</p>
  <pre><code>result = [['car', 3], ['bicycle', 2], ['taxi', 3], ['motorcycle', 4]]
  </code></pre>
  <p>The new list should return the count of the elements based on the first element. I have tried in this way but it doesn't work:</p>
  <pre><code>new = []
  for item in list_all:
      if item[0] != [new[0] for el in new]:
          new.append(item)
  print(new)
  
  </code></pre>
  <p>I'm new to Python. Any help will be much appreciated. Thank you very much.</p>