Control the number of best-dev checkpoints when training

I could see that randomly sometimes only the latest best-dev checkpoint is retained and sometimes multiple best-dev checkpoints are saved. Is there a parameter value that I could specify to control how many of these bes-dev checkpoints are saved?