add the count about failed and succ