Support for product count operation

I ended up not using this (and therefore not testing it thoroughly), but I think this takes care of the product counts unless I'm missing something.

Submitting for your consideration.

Regards!