Photoshop allows for a minimum of 1 history state and a maximum of 1000 history States. History States are what allow for the amount of undos. The more history states there are then the more work the computer will have have to do to store them while you work, This means that you should not want to put too many history states in the option.