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.