dask.bag.Bag.count

Bag.count(split_every=None)[source]

Count the number of elements.

Examples

>>> import dask.bag as db
>>> numbers = db.from_sequence([1, 2, 3])
>>> numbers.count().compute()
3