1👍
✅
There is no direct way, try this:
{%for data in trees %}
{% if forloop.counter == subtree_num %}
{{ data.task_count }}
{% endif %}
{% endfor %}
Source:stackexchange.com