Skip to content Skip to footer navigation

Count Modifier

Count the number of items in an array.

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