SELECT COUNT(*) AS page_count FROM projects ##where_sql##