Complex sentence: New York City, for example, consists of five counties or boroughs, all of which retain certain local powers through their own borough councils and presidents.
Split into simpler sentences: New York City, for example, consists of five boroughs, each in a distinct county. Each borough retains certain local powers through their own borough councils and presidents.