Since this is a custom object, it would be more efficient to append the values to a temporary array variable and then use the Length action. First, declare a temporary array variable, and then use the Append to List action to add the values to that temporary array.
If I have answered your question, please mark it as the suggested answer. If you like my response, please give it a Like.