Count the number of documents.
select count(*) from documents