Counting and Intersection of Sets