SELECT count(DISTINCT template_id) FROM Documents
Count the number of different templates used for documents.
SELECT count ( DISTINCT template_id ) FROM Documents
select count ( distinct template_id ) from documents
Count the number of different templates used for documents .