Find Number of Products Needed

Added function findNumProducts to determine the quantity of products
needed.