Move stats to its own module, add counter for find()

Count the number of find() we have to currently do because of $unset.