function getCounter( id ) {
  if ( counterCache.has( id ) ) {
    return counter;
  }
  counterCache.add( id );
  counter++;
  return counter;
}
the logic is that complex because
ParamsFormBuilder re-renders with onChange event and simple counter
would iterate every time
@param {string} id
@returns {Number}