Keeping only last copy

I have a rule that copies certain configuration files to a network folder whenever they change. This is basically a backup strategy that allows me to access the contents of these files from different computers. What Hazel does makes sense and it is to add a number to the file name if a file with that name already exists. Yet, in this case, this is a bit of an annoyance since these files change very often and I wind up accumulating too many files. What would be the way of only keeping the last two or three copies and eliminating the oldest copy every time a new copy is added?