Resetting Arduino after pressing the buttons 16 times

I tried using it with if and else statements but that still did not work. Are there any other options that may work? Could any of you give me an example? I scoured the internet looking for examples and possible solutions and tried implementing them but they did not work unfortunately.