List all the apartment type codes with the counts of apartments.
select apt_type_code, count(*) from apartments group by apt_type_code
Order those results by the number of apartments in ascending order.
select apt_type_code, count(*) from apartments group by apt_type_code order by count(*) asc