How can I get the total number of document sets or use job segments?

I have a mail sorting workflow that uses a job preset to group documents into document sets. I need to have my output preset name each PDF using the set number and the total number of sets (filename like this: 1 of 26.pdf for example). I don’t see a variable available in the output preset for the total number of document sets. Is there a way to configure my presets so I can use ${segment.count.sets} instead?

You can get the document set number and the total number of document sets within a job segment by using the following Print Output Variables:

  • ${set.nr} or ${set.sequence.segment}: Document set number within the job segment
  • ${segment.count.sets}: Total number of document sets in the job segment

Source: Print output variables - PlanetPress Connect 2020.2 User Guide (link)