How many books were written by author A.J. Ayer?
"A.J. Ayer" is the author_name;
SELECT COUNT(*) FROM book_author AS T1 INNER JOIN author AS T2 ON T1.author_id = T2.author_id WHERE T2.author_name = 'A.J. Ayer'