SELECT count(DISTINCT template_id) FROM Documents
How many different templates do all document use?
SELECT count ( DISTINCT template_id ) FROM Documents
select count ( distinct template_id ) from documents
How many different templates do all document use ?