Task: Text to Code
Input (English): Show aircraft names and number of flights for each aircraft.
Output (English): SELECT T2.name ,  count(*) FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid GROUP BY T1.aid