A default implementation of query statistics for the Query result cache.
Maintains statistics for only a fixed number of queries.
Statistical counts are approximate and not exact (to keep thread synchorization overhead low).