Task: Text to Code
Input (English): Find the number of medications prescribed for each brand.
Output (English): SELECT count(*) ,  T1.name FROM medication AS T1 JOIN prescribes AS T2 ON T1.code = T2.medication GROUP BY T1.brand