Skip to content Skip to footer navigation
🏰 Statamic Summit 2027 Feb 16–19 Talks, workshops, and three nights in a German castle. Get Tickets

Count Modifier

Count the number of items in an array.

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