update count on click