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

i have playes around a little.
this methode from @JGKK is incrementing the number by 2 counts each time...