_x is a local variable. In the context of forEach or count commands, it refers in turn to each of the members of the array, taken as a parameter by the command. In other words it is local to the command.
In your example, _x refers to each member of the array "units grp1" in turn.