I\'m trying to count all my layerSets at the top level, using this code: `
alert ("Total top-level groups: " + app.activeDocument.layerSets.length)