Update api.rb

Add get_products_count method back
remove trailing slash on url for get_products_count
remove trailing slash on url for get_categories_count

Trailing slash is resulting in 404 response.
Merge pull request #56 from alexnesbitt/master

Reinstate get_products_count method