update counter after list edition