how do you set counter value using code ?
"The counter object" is an object that holds a numeric value that can be increased and decreased using actions, running lists of actions contextually and when reaching a specific target value.
You can find all the documentation about it here
Docs - Counter Object
If you cannot solve your problem , try to explain what you want to achieve and we will try to give you additional support :)