Show all the budget type codes for documents with expenses.
select budget_type_code from documents_with_expenses
For each code, show the number of corresponding documents.
select budget_type_code, count(*) from documents_with_expenses group by budget_type_code