Counts all elements contained in the specified element map.

Notes:

Parameter:

elementMapId

The object which identifies the element map.

Note: When the element map with such an identifier does not exist, the generator raises an error.

Returns:
The number of unique elements contained in the map.

See Also:

getMappedElements(), checkElementMap()