(#2072) WIP - Fix idb document count