Introduction to the counting principle