how many scholarly works have the legal information retrieval as the main subject?
(COUNT (AND book.scholarly_work (JOIN book.written_work.subjects m.09gjs2q)))