Optimize count in SingleOrNothing without predicate.