1
cheap fleshlight
You can simply start at 000 and work up in order as you would count, testing the latch each time you change a number.
So you try 000, 001, 002, 003 and so on.