function uid(id = 'id') {
  uidCounters[id] = uidCounters[id] || 1;
  const count = uidCounters[id]++;
  return `${id}-${count}`;
}
Returns a UID.
@param {String} id= - Identifier base name
@return {number} uid