(#1517) - pull doc count into it's own functio in leveldb