(#2072) WIP - Fix leveldb document count