docs: def chunk_count(swatch):
      """return the number of byte-chunks in a swatch object
  
      this recursively walks the swatch list, returning 1 for a single color &
      returns 2 for each folder plus 1 for each color it contains
      """
      if type(swatch) is dict:
          if 'data' in swatch:
              return 1
          if 'swatches' in swatch:
              return 2 + len(swatch['swatches'])
      else:
          return sum(map(chunk_count, swatch))