increment looks for a counter in the data environment of mzIDCollection objects and increments it by one if it exists. Otherwise it initialises the counter to 1. It returns the value of the counter.
1 2 3 4
An mzIDCollection object
An integer given the current count
mzIDCollection: Increment the counter in mzIDcollection objects