1
0
mirror of https://github.com/lektor/lektor-website.git synced 2025-02-22 07:00:38 +01:00
lektor-website/content/docs/api/db/query/count/contents.lr
2015-12-19 14:52:17 +01:00

17 lines
310 B
Markdown

title: count
---
summary: Counts the total number of records a query matches.
---
type: method
---
body:
This is a simple way to count the total number of items a query matches.
## Example
```html+jinja
{% set project_count = site.query('/projects').count() %}
<p>We built {{ project_count }} projects.
```