Se assumirmos que você tem uma estrutura normalizada, basta:
SELECT a.author, count(*)
FROM books b
INNER JOIN author a ON a.author_id=b.author_id
GROUP BY a.author
SELECT a.author, count(*)
FROM books b
INNER JOIN author a ON a.author_id=b.author_id
GROUP BY a.author