# Find total topics in category

**URL:** <https://meta.discourse.org/t/find-total-topics-in-category/55524>\
**Category:** Development\
**Created:** [2017年一月10日 20:37 UTC](https://meta.discourse.org/t/find-total-topics-in-category/55524 "2017-01-10T20:37:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fishb6nes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fishb6nes/32/121291_2.png) [@fishb6nes](https://meta.discourse.org/u/fishb6nes)\
**Post date:** [2017年一月10日 20:37 UTC](https://meta.discourse.org/t/find-total-topics-in-category/55524/1 "2017-01-10T20:37:03Z")

</div>

I’m looking for the file that tells me what else I can access on a category like ‘stat’ on line 35 in:  
[https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/templates/components/categories-only.hbs#L35](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/templates/components/categories-only.hbs#L35)

I’ve mostly been searching for a category model or controller, but have yet to find the ‘thing’ that exposes ‘stat’. (My eventual goal is to display the total amount of topics, rather than x topics per timeframe.)

Any leads?

---

<div class="post-metadata">

**Author:** ![fishb6nes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fishb6nes/32/121291_2.png) [@fishb6nes](https://meta.discourse.org/u/fishb6nes)\
**Post date:** [2017年一月11日 18:49 UTC](https://meta.discourse.org/t/find-total-topics-in-category/55524/2 "2017-01-11T18:49:24Z")

</div>

Massive thanks for all the input, if someones trying to inspect something (for example ‘c’ for category) in a template in the future; put `{{log c}}` somewhere in the template where its accessible and rejoice as the template spits the object out to the console when you refresh your page.
