count how many of an object type there are in a list Python,"sum(isinstance(x, int) for x in a)"