(self, multiplicities)
Returns the number of partitions of a multiset whose elements
        have the multiplicities given in ``multiplicities``.

        Primarily for comparison purposes.  It follows the same path as
        enumerate, and counts, rather than generates, the partitions.

        See Also
        ========

        count_partitions
            Has the same calling interface, but is much faster.
Returns the number of partitions of a multiset whose elements
        have the multiplicities given in ``multiplicities``.
Returns the number of partitions of a multiset whose elements have the multiplicities given in multiplicities .
def count_partitions_slow(self, multiplicities):
        """Returns the number of partitions of a multiset whose elements
        have the multiplicities given in ``multiplicities``.

        Primarily for comparison purposes.  It follows the same path as
        enumerate, and counts, rather than generates, the partitions.

        See Also
        ========

        count_partitions
            Has the same calling interface, but is much faster.

        """
        # number of partitions so far in the enumeration
        self.pcount = 0
        self._initialize_enumeration(multiplicities)
        while True:
            while self.spread_part_multiplicity():
                pass

            # M4  Visit (count) a partition
            self.pcount += 1

            # M5 (Decrease v)
            while not self.decrement_part(self.top_part()):
                # M6 (Backtrack)
                if self.lpart == 0:
                    return self.pcount
                self.lpart -= 1
def count_partitions_slow ( self , multiplicities ) : # number of partitions so far in the enumeration self . pcount = 0 self . _initialize_enumeration ( multiplicities ) while True : while self . spread_part_multiplicity ( ) : pass # M4  Visit (count) a partition self . pcount += 1 # M5 (Decrease v) while not self . decrement_part ( self . top_part ( ) ) : # M6 (Backtrack) if self . lpart == 0 : return self . pcount self . lpart -= 1