Persist the count while previous is best

It looks like the count was being reset incorrectly in each loop so the fuzzy termination wasn't happening.