query(" SELECT state, county, city, COUNT(id) as resident_count FROM residents GROUP BY state, county, city ORDER BY state, county, city ")->fetchAll(PDO::FETCH_ASSOC); ?>