I don't know the exact number, but I feel like there are only about 10 undos, maybe less. Sometimes when I am writing CGA I have to make a more than 10 different changes throughout the code before I can test the results. The undos also only apply to the window or frame in focus - so that can get a little confusing.