(self, value, counts=1)
Add an amount to the total and also increment the counts.
Add an amount to the total and also increment the counts.
Add an amount to the total and also increment the counts .
def add(self, value, counts=1):
    """Add an amount to the total and also increment the counts."""
    self.value += value
    self.total_counts += counts
def add ( self , value , counts = 1 ) : self . value += value self . total_counts += counts