Docly provided helper functions to create chapter counters working on multiple levels.
Creates a counter variable with specified name. Note that any variable with this name will be overwritten in the current scope.
Increments (steps) the counter variable with the specified name by one.
Steps backwards on a counter.
Adds an extra level to the counter.
Steps down one level on the counter (for multi level counters).