# Fetch Leaderboard Entry Count

**URL:** <https://forum.heroiclabs.com/t/fetch-leaderboard-entry-count/5790>\
**Category:** Client Libraries\
**Tags:** leaderboards\
**Created:** [November 11, 2024, 1:46pm UTC](https://forum.heroiclabs.com/t/fetch-leaderboard-entry-count/5790 "2024-11-11T13:46:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SarahNicole](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@SarahNicole](https://forum.heroiclabs.com/u/SarahNicole)\
**Post date:** [November 11, 2024, 1:46pm UTC](https://forum.heroiclabs.com/t/fetch-leaderboard-entry-count/5790/1 "2024-11-11T13:46:06Z")

</div>

Hello!

I am using Nakama 3.24.2-r2 on Heroic Cloud. The unity SDK version is 3.14 and we’re still having issues using the RankCount property for the IApiLeaderboardRecordList interface. It is only returning null, even though I have entries in my leaderboard.

This is the code I’m using:

IApiLeaderboardRecordList resultAll = await client.ListLeaderboardRecordsAsync(session, config.CashLeaderboard);

int count = int.Parse(resultAll.RankCount);

Debug.Log("Leaderboard Records count: " + count.ToString());

Please let me know what I’m doing wrong or how we can pull the count of the entries in the leaderboard.

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [November 11, 2024, 2:58pm UTC](https://forum.heroiclabs.com/t/fetch-leaderboard-entry-count/5790/2 "2024-11-11T14:58:46Z")

</div>

Hello @SarahNicole,

Were these leaderboards created before `v3.23.0` ?

If not, starting from that version there’s a new `enableRanks` param that has to be set to true to enable rank computations on new leaderboards being created.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![mengxin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mengxin/32/1879_2.png) [@mengxin](https://forum.heroiclabs.com/u/mengxin)\
**Post date:** [December 18, 2024, 6:04pm UTC](https://forum.heroiclabs.com/t/fetch-leaderboard-entry-count/5790/3 "2024-12-18T18:04:31Z")

</div>

I believe this update is not very production-friendly. If the API changes behavior, it’s better for the default value to remain consistent with the previous version. We only discovered the issue after a client reported that the API did not return rank and RankCount. It was only after checking the database and comparing it with the old tournament that we were able to identify the root cause.

is it possible to mention some **breaking change** in the release note if the default behaviour is totally changed?
