# A counter for counting payload

**URL:** <https://discourse.nodered.org/t/a-counter-for-counting-payload/57674>\
**Category:** General\
**Created:** [2 February 2022 17:41 UTC](https://discourse.nodered.org/t/a-counter-for-counting-payload/57674 "2022-02-02T17:41:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![maliheh.amirfakhry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maliheh.amirfakhry/32/55147_2.png) [@maliheh.amirfakhry](https://discourse.nodered.org/u/maliheh.amirfakhry)\
**Post date:** [2 February 2022 17:41 UTC](https://discourse.nodered.org/t/a-counter-for-counting-payload/57674/1 "2022-02-02T17:41:11Z")

</div>

Hi guys, I'm looking for a counter to count the payload numbers ( how many times the payload is sent to debug). Can you please let me know if there is any ready node for this purpose? Thank you

---

<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:** [2 February 2022 17:44 UTC](https://discourse.nodered.org/t/a-counter-for-counting-payload/57674/2 "2022-02-02T17:44:14Z")

</div>

Possibly there is a contrib node however this is very easy to do with standard nodes.

Here is a solution I provided for another user : [Counting messages per main topic - #2 by Steve-Mcl](https://discourse.nodered.org/t/counting-messages-per-main-topic/56814/2)

---

<div class="post-metadata">

**Author:** ![maliheh.amirfakhry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maliheh.amirfakhry/32/55147_2.png) [@maliheh.amirfakhry](https://discourse.nodered.org/u/maliheh.amirfakhry)\
**Post date:** [2 February 2022 18:01 UTC](https://discourse.nodered.org/t/a-counter-for-counting-payload/57674/3 "2022-02-02T18:01:49Z")

</div>

Thank you so much

---

<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:** [2 February 2022 18:08 UTC](https://discourse.nodered.org/t/a-counter-for-counting-payload/57674/4 "2022-02-02T18:08:18Z")

</div>

Here is another: [Count the messages - #12 by Steve-Mcl](https://discourse.nodered.org/t/count-the-messages/47412/12)

---

<div class="post-metadata">

**Author:** ![maliheh.amirfakhry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maliheh.amirfakhry/32/55147_2.png) [@maliheh.amirfakhry](https://discourse.nodered.org/u/maliheh.amirfakhry)\
**Post date:** [2 February 2022 18:55 UTC](https://discourse.nodered.org/t/a-counter-for-counting-payload/57674/5 "2022-02-02T18:55:29Z")

</div>

Now it sends the counter. Thank you so much . my problem is solved with ur help.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [3 April 2022 18:56 UTC](https://discourse.nodered.org/t/a-counter-for-counting-payload/57674/6 "2022-04-03T18:56:16Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
