The counter output is AQ, which with each pulse on the input C, will either increment or decrement depending on the value of the Dir input. You can define the start value of AQ with the parameter SV.
In addition this program block allows you to turn the Q output on and off using the parameters Von and Voff. As soon as AQ is equal or greater to Von then Q will be on, and as soon as the value of AQ is less than or equal to Voff then Q will go off.
A pulse on the input R will reset to the start value, SV parameter, again.