SELECT template_id ,  count(*) FROM Documents GROUP BY template_id
What are all different template ids used for documents, and how many times were each of them used?
SELECT template_id , count ( * ) FROM Documents GROUP BY template_id
select template_id , count ( * ) from documents group by template_id
What are all different template ids used for documents , and how many times were each of them used ?