def Incr(self, x, term=1):
        """Increments the freq/prob associated with the value x.

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

        Args:
            x: number value
            term: how much to increment by