# Displaying product count

**URL:** https://community.glideapps.com/t/displaying-product-count/63943
**Category:** Ask for Help
**Created:** [July 15, 2023, 10:14am UTC](https://community.glideapps.com/t/displaying-product-count/63943 "2023-07-15T10:14:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![StefanvanLierop](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/stefanvanlierop/32/61663_2.png) [@StefanvanLierop](https://community.glideapps.com/u/StefanvanLierop)
#### Post date: [July 15, 2023, 10:14am UTC](https://community.glideapps.com/t/displaying-product-count/63943/1 "2023-07-15T10:14:39Z")

</div>

Hello Gliders,

Is there e a way to count the number of products belonging to a category and display this number as meta data on my page with categories (list or grid)?

Like this:

Fruit (8)

Vegetables (0)

Candy (2)

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [July 15, 2023, 10:23am UTC](https://community.glideapps.com/t/displaying-product-count/63943/2 "2023-07-15T10:23:23Z")

</div>

From your previous question, you should already have a multiple relation column in your Categories table that matches the category name to the same in your Products table.

What you need to do next is add a Rollup column to your Categories table, target it at the multiple relation column, and take a count.

Then you can use that together with the Category name in a Template column to get what you want.

> **[Glide • Rollup Column](https://www.glideapps.com/docs/reference/computed-columns/rollup-column)**
>
> Perform calculations on columns, such as count, average, and sum.

> **[Glide • Template Column](https://www.glideapps.com/docs/reference/computed-columns/template-column)**
>
> Display dynamic text that can change with the values in other columns.

---

<div class="post-metadata">

### Author: ![StefanvanLierop](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/stefanvanlierop/32/61663_2.png) [@StefanvanLierop](https://community.glideapps.com/u/StefanvanLierop)
#### Post date: [July 15, 2023, 11:19pm UTC](https://community.glideapps.com/t/displaying-product-count/63943/3 "2023-07-15T23:19:30Z")

</div>

Thanks! It worked 😃

---

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)
#### Post date: [July 16, 2023, 11:19pm UTC](https://community.glideapps.com/t/displaying-product-count/63943/4 "2023-07-16T23:19:50Z")

</div>

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