count Modifier

Count the number of items in an array.

fruit:
- apples
- bananas
- bacon
{{ fruit | count }}
{{ Statamic::modify($fruit)->count() }}
3
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →