title: count how many of an object type there are in a list Python
body: <p>If I have a list in python:</p>
  
  <pre><code>a = [1, 1.23, 'abc', 'ABC', 6.45, 2, 3, 4, 4.98]
  </code></pre>
  
  <p>Is there a very easy way to count the amount of an object type there are in <code>a</code>?
  Something simpler than the following but produces the same result:</p>
  
  <pre><code>l = [i for i in a if type(a[i]) == int]
  print(len(l))
  </code></pre>
  
  <p>Hopefully I made myself clear. </p>