Situated on one of the world's largest natural harbors, New York City consists of five boroughs, each of which is a separate county of New York State. The five boroughs – Brooklyn, Queens, Manhattan, The Bronx, and Staten Island – were consolidated into a single city in 1898. The city and its metropolitan area constitute the premier gateway for legal immigration to the United States, and as many as 800 languages are spoken in New York, making it the most linguistically diverse city in the world. New York City is home to more than 3. 2 million residents born outside the United States, the world's largest foreign-born population of any city.  By 2016 estimates, the New York City metropolitan region remains by a significant margin the most populous in the United States, as defined by both the Metropolitan Statistical Area (MSA), 20. 2 million residents, and the Combined Statistical Area (CSA), 23. 7 million residents. In 2013, the MSA produced a gross metropolitan product (GMP) of nearly US$1. 39 trillion.  In 2012, the CSA generated a GMP of over US$1. 55 trillion. NYC's MSA and CSA GDP are higher than the GDPs of all but 11 and 12 countries, respectively.