A sketch to work with a 7-segment display and 8-bit shift register and a push button.
The 7-segment displays numbers starting from countStart to countEnd with a delay equals to countDelay between each update.
When the push button is pushed for a short period , counting reset happens.
When the push button is pushed for a long period , counting order (ascending, descending) toggles.
All componets used are in the .csv sheet.
The circuit digram is attachd in .png file.