Task: Text to Code
Input (English): SQL: SELECT director , Count ( * ) FROM Movie GROUP BY director
Feedback: Make sure the number of rows is equivalent to each value of movie id of rating table.
Output (English): SELECT count(*) ,  T1.director FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID GROUP BY T1.director