I start with my fingers all closed into a fist. I simply open the next finger, starting from my little finger. When I reach my thumb, I know to do the next 'thing' (whatever it is), then repeat. Rather than using your brain to store your state, you use your fingers. You can forget about what you are doing and simply know your state based on the feel of your fingers. Its basically like a simple state machine.