Update counter