{% set count = 0 %}
{% for item in items %}
{% set count = count + 1 %}
{{ item.content }}
{% endfor %}
{% if count == 1 %}
{% include 'themes/custom/my-theme/templates/content/taxonomy-term--name.html.twig' with {'count':count} %}
ничего не выходит