How many document types are there?
select count(*) from ref_document_types