Node-red-contrib-counter

No, you don't.
Replace it with a change node, and save/retrieve your data values as described in the node-RED documentation.

Also, if you share any flows or code, please use this method - How to share code or flow json