fix counting in --allow-failed