List all headquarters and the number of companies in each headquarter.
select headquarters, count(*) from company group by headquarters