PyDocs

Nav

Data Types

Counter.total

collections

method of Counter · Added in 3.10 (source)
  • Counter.total()
Sum of the counts
1 Example
>>> c = Counter(a=10, b=5, c=0)
>>> c.total()
15
from the Python docs
See Also
No see-alsos for collections/Counter.total
0 Notes
No notes for Counter.total