Feature request: keep x # of previous versions

It would be nice if there was a way to say to keep the last X # of versions.

Could you not use the file retention system?