convert 2d array of product comparisons into an array of objects with 2 properties: id & count. Next step is to populate pieChartDataSource iteratively instead of hard-coding the data.