Changed COUNT to SUM for qty