def _count(self, X, Y):
        """Count and smooth feature occurrences."""

        self.feature_count_ += safe_sparse_dot(Y.T, X)
        self.class_count_ += Y.sum(axis=0)
Count and smooth feature occurrences.