Counting principle

Problem #2