# Message counter help

**URL:** <https://discourse.nodered.org/t/message-counter-help/43934>\
**Category:** General\
**Created:** [9 April 2021 18:24 UTC](https://discourse.nodered.org/t/message-counter-help/43934 "2021-04-09T18:24:22Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [10 April 2021 08:53 UTC](https://discourse.nodered.org/t/message-counter-help/43934/4 "2021-04-10T08:53:33Z")

</div>

> [@biros](#):
>
> I am new to node-red, the only thing i can reference to is my work where we store some counter values in retentive memories where it "survives" a reload of the program or cold/warm restarts. Is this possible in nr

You could very easily create your own counter that uses context & If you enable [file backed context](https://nodered.org/docs/api/context/store/localfilesystem) the counter will survive a reboot.

[Here](https://discourse.nodered.org/t/counter-node-loses-count-on-upgrade/43440/22) is an example of creating a counter using a function node and context.

---

_[View the full topic](https://discourse.nodered.org/t/message-counter-help/43934)._
