code: def Incr(self, x, term=1):
          
          self.d[x] = self.d.get(x, 0) + term
docs: Increments the freq/prob associated with the value x.
  
          Args:
              x: number value
              term: how much to increment by