Assuming that I have a list with huge number of items.
l = [ 1, 4, 6, 30, 2, ... ]
I want to get the number of items from that list, where
you could do something like:
l = [1,2,3,4,5,..] count = sum(1 for i in l if my_condition(i))
which just adds 1 for each element that satisfies the condition.