Task: Text to Code
Input (English): Find the number of teachers who teach the student called MADLOCK RAY.
Output (English): SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.firstname  =  "MADLOCK" AND T1.lastname  =  "RAY"