Count the elements in an array.

count

{{count($array)}}

Examples

count

{{$array = ["Banana", "Apple", "Pear"]}}
{{count($array)}}

Output: 

3