'Return the total number of sample outcomes that have been
recorded by this FreqDist.  For the number of unique
sample values (or bins) with counts greater than zero, use
``FreqDist.B()``.
:rtype: int'

def N(self):

    if (self._N is None):
        self._N = sum(self.values())
    return self._N
