Skip to content Skip to footer navigation
You are reading the Statamic 6 Alpha docs. πŸ‘€

Count Modifier

Count the number of items in an array.

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