add update count functions