auto update count on select change