Each Order in the database has a product_id. There is only one Product per order.
From the ProductsController, I want to show all the products, and next to each one a number of how many times it has been ordered. I will need to include a condition to exclude any products that have deleted = 0
This query should return the results you need. Adjust as needed with conditions, additional fields, etc.