count

The count filter accepts one array argument and returns the number of elements in the array.

{{ [1,2,3]|count }}