update total number