Retrieve product count in collection

On my collection pages, where I display products and filters with the Storefront API, I would like to be able to show the count of all products in this collection. I found and tested a workaround suggested by user Babyt:

While this count is correct as long as there are no filters active, I would like to show the user a count of only the products contained in active filter(s). While the Admin API seems to provide this functionality, the Storefront API doesn’t.

I’m sorry, but I don’t think it is possible at this time. I’m hoping we’ll fix that in the SFAPI in the future.

1 Like

Thanks for responding! If Storefront API could provide this in the future that’d be great.