If I understand you correctly, you mean you want it to count 0, 1, 2 and then stop a selected number.
Is the stop number fixed, or do you need to be able to change it?
The way to do it would be to use logic gates connected to the segment outputs to determine if the selected number has been hit and then feed this back into the clock inhibit pin.
Bob