When members of a family discussed where their annual reunion should take place, they found that out of all the family members, 10 would not go to a park, 7 would not go to a beach, 12 would not go to the family cottage, 4 would go to neither a park nor a beach, 4 would go to neither a beach nor the family cottage, and 2 would go to all three places. What is the total number of family members?