diff --git a/src/paperwork/backend/docsearch.py b/src/paperwork/backend/docsearch.py
index <HASH>..<HASH> 100644
--- a/src/paperwork/backend/docsearch.py
+++ b/src/paperwork/backend/docsearch.py
@@ -677,6 +677,10 @@ class DocSearch(object):
 
     docs = property(__get_all_docs)
 
+    @property
+    def nb_docs(self):
+        return len(self._docs_by_id)
+
     def get(self, obj_id):
         """
         Get a document or a page using its ID
DocSearch: Add a method to get the total number of documents without converting the whole document list into a Python list