The Inclusion--Exclusion Principle: Counting by Alternating Sums