user: ### NOW ANSWER:
Question: What is the most recent episode number written by Matthew Pitts?
Columns: ['№', '#', 'Title', 'Directed by', 'Written by', 'Original air date', 'Production code', 'U.S. viewers (million)']
Types: ['real', 'real', 'text', 'text', 'text', 'text', 'text', 'text']
Sample row: [21.0, 1.0, '" A New Day in the Old Town "', 'Akiva Goldsman', 'J. J. Abrams & Akiva Goldsman', 'September17,2009', '3X5101', '7.82']
SQL:

assistant: SELECT MAX("#") FROM "Table" WHERE "Written by" = 'Matthew Pitts';