Count filtered data item Airtable API

I’m developing an app with airtable API and then there is a page that listed items and that item has 3 filter categories, so I want to make a filter function but each filter category must can count how many items can be filtered again

example
category 1:
item 1(3)
item 2(1)
item 3(2)

category 2:
item 1(3)
item 2(2)
item 3(4)

expected result

filter: category 1 = item 1

category 2:
item 1(2)
item 2(1)

I’m stuck on that case, so can anyone help me?

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