Returns the current number of cache entries. This is intended to be used for monitoring. Note that depending on
the implementation, the cost of this operation is not necessary trivial, although calling it a few times per
minute should not be a problem.