When you select an aggregate (such as count (*), )  you also need to do a group by on the results. Select ,count() as NumberOfBooks from AUTHOR a join BOOKS…
Continue Reading