What are the different ship flags, and how many ships have each?
return ships ;return different flags of  #1 ;return ships that  have  #2 ;return number of  #3 for each  #2 ;return #2 ,  #4
['select', 'project', 'project', 'group', 'union']