Six problems count the subsets or orders that obey rules. The move is to test every choice before making it, so that dead branches are never entered.
Six interview problems sit on this street.