'Return the number of combinations, starting with a single attribute
if Mosaic is colored by class distributions, and two if by Pearson'

def state_count(self):

    n_attrs = len(self.master.discrete_data.domain.attributes)
    min_attrs = (1 if self._compute_class_dists() else 2)
    max_attrs = min(n_attrs, self.max_attrs)
    return sum((comb(n_attrs, k, exact=True) for k in range(min_attrs, (max_attrs + 1))))
