Queries to count number of publications.