human
count how many of an object type there are in a list Python
assistant
Here is some code to count the number of integers in list `a`

sum(isinstance(x, int) for x in a)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.