Php lik bir durum göremedim ben, tabi doğru anladıysam aşağıdaki sorgu cümlesi ile istediğiniz sonucu elde edebilirsiniz;

SELECT sehir,COUNT(*) FROM tablo GROUP BY sehir