reset master to version with count AND max_counter