# Understanding 'Count' & 'limit / limitBy'?

**URL:** <https://community.bitquery.io/t/understanding-count-limit-limitby/816>\
**Category:** GraphQL API\
**Tags:** graphql-ide\
**Created:** [January 17, 2022, 8:24pm UTC](https://community.bitquery.io/t/understanding-count-limit-limitby/816 "2022-01-17T20:24:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kjulien](https://sea2.discourse-cdn.com/flex016/user_avatar/community.bitquery.io/kjulien/32/417_2.png) [@kjulien](https://community.bitquery.io/u/kjulien)\
**Post date:** [January 17, 2022, 8:24pm UTC](https://community.bitquery.io/t/understanding-count-limit-limitby/816/1 "2022-01-17T20:24:42Z")

</div>

Hi Everyone, I was wondering, can someone explain ‘count’ to me? I’m running a query, and I’d like to return more than one of the same information from the same wallet smart contract address. So for example, if the same address in particular had xx deposits during a xx amount of time. like 4 Deposits in 1 hour. I thought count might be the right thing to use, and also doing options: {desc: “block.timestamp.time”, limitBy: {each: “caller.address”, limit: 1}, limit: 10} but i don’t think i understand how limit within a limit works…? Please help!

---

<div class="post-metadata">

**Author:** ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://community.bitquery.io/u/gaurav)\
**Post date:** [January 18, 2022, 12:16pm UTC](https://community.bitquery.io/t/understanding-count-limit-limitby/816/2 "2022-01-18T12:16:22Z")

</div>

Please share your query, and explain what you trying to achieve.

---

<div class="post-metadata">

**Author:** ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://community.bitquery.io/u/gaurav)\
**Post date:** [February 6, 2024, 3:16pm UTC](https://community.bitquery.io/t/understanding-count-limit-limitby/816/3 "2024-02-06T15:16:42Z")

</div>

So, think of `count` as an SQL count function that can count different metrics related to results.

`LimitBy` limits the result based on `each` and `limit`, and `limit` standalone will limit the overall results

in above question

`options: {desc: “block.timestamp.time”, limitBy: {each: “caller.address”, limit: 1}, limit: 10}`

You are limit overall results to 10 , and this result will have 1 caller.address, so limitBy works like Group by
