Whenever you are in danger of running out of pins to drive all your LEDs this is a way to solve the problem.