Q&A about the site for administrators, end users, developers and designers for Craft CMS
select count(*) as count from posts where postTypeId = 1