How many of them have expenses?
SELECT count ( document_id )  FROM Documents_with_expenses
count of documents with expenses = COUNT(document_id); documents that have expenses refers to Documents_with_expenses;