New York City consists of five boroughs, each coterminous with one of five counties of New York State: Brooklyn is Kings County, the Bronx is Bronx County, Manhattan is New York County, Queens is Queens County, and Staten Island is Richmond County. When New York City was consolidated into its present form in 1898, all previous town and county governments within it were abolished in favor of the present five boroughs and a unified, centralized city government. However, each county retains its own district attorney to prosecute crimes, and most of the court system is organized around the counties.