Syntax FACTORY_DEF CounterFactory [FACTORY_NAME ] [START ] [SCOPE (Global|Local)] [DOMAIN ] [GROUP_BY [[ ]*] [FLUSH_WHEN_GROUPS_CHANGE (YES|NO)] [COUNT_ATTR ] [GROUP_ID_ATTR ] [INPUT FEATURE_TYPE [ ]* []*]+ [OUTPUT OUTPUT FEATURE_TYPE [ ]* []*]* [OUTPUT FEATURE_TYPE [ ]* []*]* Overview This function provides a mechanism for generating unique numbers and assigning them to feature attributes during a translation. It can count features and perform group by in Local scope. It can also count features globally in a workspace based on the provided count domain. Parameters START The starting value of the counter. The counter is incremented from the start value. SCOPE A string to limit the counting scope. When global, features are processed and counted globally across all CounterFactories. DOMAIN A string representing the domain of a counter. This allows many different counters to be used together during a single translation. Can be a literal string or an attribute name. Relevant with Global Scope. GROUP_BY The list of attribute names to group by. Relevant with Local Scope. FLUSH_WHEN_GROUPS_CHANGE Whether to process groups once all features have been received or when the group changes. Relevant with Local Scope. COUNT_ATTR The name of the attribute that will contain the count result. GROUP_ID_ATTR The name of the attribute that will contain the Group ID of a feature. The Group ID value will be a unique number associated with the group of a feature. The first group ID will start at 1, counting up for each unique group processed after.