Show the type code for all documents.
select document_type_code from documents
For each of these codes, also show the number of documents.
select document_type_code, count(*) from documents group by document_type_code