ForEach Loop counter

I have an array of objects with a variable “team”.
Now i want to count how many objects in that array have team = 1.

I somehow can’t get such a simple step setup in Blueprints.

Here my approach without the “team=1” condition, so just another version of array_length.
But not even that works.

Hello StreakyCat,

Have you tried just using an integer variable instead of Make Literal Int? Then you can increment it, and then set the Integer variable on each loop. Something like this worked for me:

Thanks for the workaround.