Task: Text to Code
Input (English): SQL: SELECT Rank , Count ( * ) FROM Faculty GROUP BY Rank
Feedback: Need to find number of rows correspond to faculty id from student table .
Output (English): SELECT T1.rank ,  count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.rank