Database: cre_Doc_Template_Mgt
Question: Show all template ids and number of documents using each template.
SQL:
SELECT template_id ,  count(*) FROM Documents GROUP BY template_id