Undo History, increase capacity?

Hello Guys,

I have a problem, since i painted a lot of foliages in my scene the undo history does not work anymore.

Any ideas how i can increase the capacity?

Greets