The undo history as a list (the History panel).
Step labels, oldest first: the undoable steps, then the redoable ones.
How many steps are applied: 0 = the project as opened ("Original"), labels.length = latest. Steps after it are the ones redo would bring back.
labels.length
The undo history as a list (the History panel).