count ()

This is a simple way to count the total number of items a query matches.

Example

{% set project_count = site.query('/projects').count() %}
<p>We built {{ project_count }} projects.

Comments