How to define counter value in data layer

It's usually better to default everything to a string value (e.g. "1") since most of our templates expect strings. Javascript is also loose enough where you can increment and convert back to a string in one swoop: