count

This ViewHelper counts elements of the specified array or countable object.

Examples

Count array elements:

<f:count subject="{0:1, 1:2, 2:3, 3:4}" />

Output:

4

inline notation:

{objects -> f:count()}

Output:

10 (depending on the number of items in {objects})

Arguments

subject

DataType
mixed
Required
true
Description
Countable subject, array or Countable