finished getKeyStats() as getDocStats() with multiple capabilities.