For each element in the Region Array point
Dump the Region listed in the element in Region ID Array
Set counter to 0
For each item in Region that matches the current element in Item Class Array
If (the element has an Attribute matching the current
element in the Attribute Name Array) than
If (the attribute value matches the current element in the
Attribute Value Array) than
Increment Counter
End if
End if
Next item
Get the point id of the current element in Count Point ID Array Point
Set the point value to the counter
Next Region
Attribute Counts. |