If you look at the piece of code below, you will understand exactly what I want. Enough even if I only get the number of cars that comply with this condition. Or it would be great if we could create a new loop from cars that comply with this condition.
{% for car in cars %}
{% if car.color == 'white' %}
create new for loop from white cars
or
give me the numbers of white cars
{% endif %}
{% endfor %}