update and count actions