Solution for Counting Subsets (sset)