{% if maxcount is not defined %} {% set maxcount = (articles|length) + 1 %} {% endif %}