Update api.rb

Add get_products_count method back