add :max and :min options to :counter