Working (by replacing the count() argument with a variable): Node ; count = --------- Not working in the 2nd loop iteration (by using the union expression as count() argument): Node ; count = ---------