Trigger
Area: whole map
Activation: East present
Condition: this and var1
On activation: numberE = count thislist
When the variable var1 is set to true, the variable numberE will be set to the number of east units on the map. Alternatively
On Activation: eastArray = thislist
Syntax etc not guaranteed.