code: function toCountString(countOrArray, singularName) {
    const n = Array.isArray(countOrArray) ? countOrArray.length : countOrArray;
    return `${n} ${singularName}${n !== 1 ? 's' : ''}`;
  }
docs: ===================================================================================================================== Miscellaneous utilities ===================================================================================================================== 
  Returns a string containing the count of the number of items followed by the singular name for an item appropriately
  pluralised according to the count.
  @param {number|Array.<*>} countOrArray - a count or an array of items to count
  @param {string} singularName - the singular name for the items being counted