How can I keep editing revision to just two? I have a site

Hi,
How can I keep editing revision to just two? I have a site that has about 88 useless revision and I wonder how can I get a snippet that make will keep my revision while editing my site to just two.

Regards