make sure the count happen on success operations