How to count in arduino and display other values

The state change detection tutorial will show how to count button presses. And my tutorial shows how to do it with an active low button (preferred).

Then put your output numbers in an array and send the output number using the button press count to index the array.