implemented stats().numKeys for KVDictionaryHeap (for numRecords)