lib/BuilderHash: Check res.count when deciding to save hash.