Find the number of different products that are produced by companies at different headquarter cities.
select count(distinct t1.name), t2.headquarter from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code group by t2.headquarter