For each city, how many branches opened before 2010?
select city, count(*) from branch where open_year < 2010 group by city