This article explains how to use counters and implement them in workflow. In this example we create a counter that is used to increment the customer number when you create new Customers.
Go to the System Tab and press Show Counters. Create a new Counter by pressing Create
Write in Name CustomerNumber, choose rollover frequency Never, Type Global and StartValue 1000. Save your counter with Save Button or Ctrl-S
Go into the Customer: New workflow and add the Get Next Counter Value Activity between the start activity and the Create Customer Activity
Click the Create Customer Entity and click Open Reference to add CustomerNumber to the entity Customer. Save the entity before returning to the Workflow again.
Double-click the create customer activity and add Value Get Next Customer number > Counter Value to the property Number. Then Save workflow and test it.