Revert "Countable implementation for DocumentRepository"

This reverts commit 76392d5fa9b0a874435c3fbb8a0fd631201f140c from #853.