I have written an automation that increments a counter (custom field) and then compares the value to a set number. If the counter is less than the set number the issue is transitioned. The automation works except that the compare appears to happen before the counter has incremented.
I want the sub-task to Approved twice, so after first approval transition the counter is set to 1 and the issue is transitioned back to Approval status. After the second transition it should remain Approved. However, even though the Counter is being compared to the value 2, the rule has to run 3 times for the compare to work.

Any ideas why?