Find the number of courses provided in each semester and year.
return courses ;return semester of #1 ;return year of #1 ;return number of  #1 for each #2 ;return number of  #1 for each #3 ;return #4 ,  #5
['select', 'project', 'project', 'group', 'group', 'union']