List count of occurrences pairs, triplets, etc. from sets
This is the itemset mining problem.  Use any standard algorithm for that problem.  Follow the links to learn more about standard algorithms for that task.