display the country ID and number of cities for each country.
SELECT country_id ,  COUNT(*) FROM locations GROUP BY country_id
display the country ID and number of cities for each country refers to SELECT country_id, COUNT(*) FROM locations GROUP BY country_id;