How many documents are there of each type?
select document_type_code, count(*) from documents group by document_type_code