count
This is a simple way to count the total number of items a query matches.
{% set project_count = site.query('/projects').count() %} <p>We built {{ project_count }} projects.
Comments