As I am working at an amusement park, our roller coaster ride suddenly had a problem. It never stopped, it is continuously running over and over. It was supposed to run on the loop two times then stop. So there is an emergency requirement of a two step counter, and I’ve made one by using three relays. here is the circuit diagram of it:

And here is the video of testing the circuit.
https://youtube.com/watch?v=81i7af3ciWs%3Ffeature%3Doembed