Incrementally blinking led light after certain amount of time

Do you know how I might be able to stop the increment at 12? Once it goes to 12 then goes back to 1...