Add doc.getStats
for debugging purpose
#920
Merged
doc.getStats
for debugging purpose
#920