Chapter 6 The principle of inclusion and exclusion