Just use a decade counter or a shift register.
Top input feeds in new values. Bottom is the clock.
Middle should be set high normally. If it is set low it will stop the signal wrapping around from the last LED to the first, eventually clearing the outputs.