edit max count