[math-fun] Combinatorics question: Counting placing items in bins according to boolean restrictions