finished problem 9, fixed comment on countProducts