improve the order of things
Improved result logging, separating result.count and result.cached