What are the different template type codes, and how many documents use each type?
return template type  codes ;return different #1 ;return documents that  use #2 ;return number of  #3 for each  #2 ;return #2 ,  #4
['select', 'project', 'project', 'group', 'union']