Question: Can you list the number of amenity ids associated with each distinct dorm id and display both of those results (dorm id and number of amenity ids)?
SQL: SELECT T3.dormid, count ( T4.amenid )  FROM dorm AS T3 JOIN has_amenity AS T4 ON T3.dormid   =   T4.dormid JOIN dorm_amenity AS T5 ON T4.amenid   =   T5.amenid GROUP BY T3.dormid