How many documents have expenses?
select count(*) from documents_with_expenses