If currSubset is empty
if not currSubset : NEW_LINE INDENT return 0 NEW_LINE DEDENT count = 1 NEW_LINE for element in currSubset : NEW_LINE INDENT count *= frequency [ element ] NEW_LINE DEDENT return count NEW_LINE