update total status count query