Counting principles and algebra of sets