Return each apartment type code with the number of apartments having that apartment type, in ascending order of the number of apartments.
return apartment type  codes ;return apartments  having #1 ;return number of  #2 for each  #1 ;return #1 ,  #3 ;return #4 sorted by #3 in ascending order
['select', 'project', 'group', 'union', 'sort']