Reinstate get_products_count method

The get_products_count method was added some time ago and then it looks like the get_products_count method was removed for some reason.

This request is to add it back.