update counter
update counter