Count the number of documents with expenses.
select count(*) from documents_with_expenses