You might be able to to turn your Ditto off after # of times by sending MIDI messages from a laptop (or possibly iPad) thru a MIDI interface. The more devices along the path, the trickier it gets.
Good luck!