count the number of items in a generator/iterator `it`,sum(1 for i in it)