Show the type codes for all documents.
select document_type_code from documents
For each of the codes, count the number of documents.
select document_type_code, count(*) from documents group by document_type_code
Which code has the most documents?
select document_type_code from documents group by document_type_code order by count(*) desc limit 1