# I want to calculate the number of times someone names is added into my firebase realtime database

**URL:** <https://community.thunkable.com/t/i-want-to-calculate-the-number-of-times-someone-names-is-added-into-my-firebase-realtime-database/2621914>\
**Category:** Questions about Thunkable X\
**Tags:** help\
**Created:** [September 30, 2023, 7:09pm UTC](https://community.thunkable.com/t/i-want-to-calculate-the-number-of-times-someone-names-is-added-into-my-firebase-realtime-database/2621914 "2023-09-30T19:09:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinstowenye](https://avatars.discourse-cdn.com/v4/letter/k/958977/32.png) [@kevinstowenye](https://community.thunkable.com/u/kevinstowenye)\
**Post date:** [September 30, 2023, 7:09pm UTC](https://community.thunkable.com/t/i-want-to-calculate-the-number-of-times-someone-names-is-added-into-my-firebase-realtime-database/2621914/1 "2023-09-30T19:09:19Z")

</div>

I have created an app that captures peoples names and the time when added into the firebase realtime data bases.  
Now this database is full of entries with different peoples names etc.  
I want to calculate the total times name “x” is entered into the databse.  
**Image of my code example**

 ![Capture1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/8/18768d1d2035e7c98b2cd0cc069050ad4128ab43.png)

**picture of my databse**  
 ![Capture](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/b/fb4c59ea13024e15510ff69c6fee6e1748bf78ee.png)

---

<div class="post-metadata">

**Author:** ![vishruth-ram](https://avatars.discourse-cdn.com/v4/letter/v/82dd89/32.png) [@vishruth-ram](https://community.thunkable.com/u/vishruth-ram)\
**Post date:** [October 1, 2023, 5:22am UTC](https://community.thunkable.com/t/i-want-to-calculate-the-number-of-times-someone-names-is-added-into-my-firebase-realtime-database/2621914/2 "2023-10-01T05:22:45Z")

</div>

The property `mark` is not on a list. Since you’re adding the object at the end of the list you can use the get #1 block and use the variable as the list, and the # 1 with # lenght of the list

---

<div class="post-metadata">

**Author:** ![kevinstowenye](https://avatars.discourse-cdn.com/v4/letter/k/958977/32.png) [@kevinstowenye](https://community.thunkable.com/u/kevinstowenye)\
**Post date:** [October 1, 2023, 7:35am UTC](https://community.thunkable.com/t/i-want-to-calculate-the-number-of-times-someone-names-is-added-into-my-firebase-realtime-database/2621914/3 "2023-10-01T07:35:56Z")

</div>

Would you be able to build a small block to explain this please? I’m a little confused

---

<div class="post-metadata">

**Author:** ![vishruth-ram](https://avatars.discourse-cdn.com/v4/letter/v/82dd89/32.png) [@vishruth-ram](https://community.thunkable.com/u/vishruth-ram)\
**Post date:** [October 1, 2023, 7:39am UTC](https://community.thunkable.com/t/i-want-to-calculate-the-number-of-times-someone-names-is-added-into-my-firebase-realtime-database/2621914/4 "2023-10-01T07:39:02Z")

</div>

Set Your entries label to  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/6/2668e43f1b6a0b7da8353735bb93bce88d804673.png)

---

<div class="post-metadata">

**Author:** ![kevinstowenye](https://avatars.discourse-cdn.com/v4/letter/k/958977/32.png) [@kevinstowenye](https://community.thunkable.com/u/kevinstowenye)\
**Post date:** [October 1, 2023, 9:17am UTC](https://community.thunkable.com/t/i-want-to-calculate-the-number-of-times-someone-names-is-added-into-my-firebase-realtime-database/2621914/5 "2023-10-01T09:17:35Z")

</div>

Ok I understand what you suggested. However, I want to calclaute the number of times Steve has been entered into the data base. I want to build a query that searches for “Steve” in all the datapoints and then says 2 in the above image case. If that makes sense

---

<div class="post-metadata">

**Author:** ![vishruth-ram](https://avatars.discourse-cdn.com/v4/letter/v/82dd89/32.png) [@vishruth-ram](https://community.thunkable.com/u/vishruth-ram)\
**Post date:** [October 1, 2023, 10:11am UTC](https://community.thunkable.com/t/i-want-to-calculate-the-number-of-times-someone-names-is-added-into-my-firebase-realtime-database/2621914/6 "2023-10-01T10:11:22Z")

</div>

Try this

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/1/519cc0dea7dd8332552303598004610e2cd6f6c5.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [December 30, 2023, 10:11am UTC](https://community.thunkable.com/t/i-want-to-calculate-the-number-of-times-someone-names-is-added-into-my-firebase-realtime-database/2621914/7 "2023-12-30T10:11:24Z")

</div>

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