add stats (entries, length) to debug output. [ci skip]