Set variable for max number of snapshots to keep.