Halifax (/hlfks/), formally the Halifax Regional Municipality (HRM), is the capital of the province of Nova Scotia, Canada. The metropolitan area had a population of 390,096 in 2011 with 297,943 in the urban area. Formed by the 1996 amalgamation of Halifax County, the municipality is divided into 18 community planning areas, which are, in turn, divided into over 200 named communities and neighbourhoods, such as the former cities of Dartmouth and Halifax proper. Halifax is a major economic centre in eastern Canada with a large concentration of government services and private sector companies. Major employers and economic generators include the Department of National Defence, Dalhousie University, the Halifax Shipyard, various levels of government, and the Port of Halifax. Agriculture, fishing, mining, forestry and natural gas extraction are major resource industries found in the rural areas of the municipality. Halifax was ranked by MoneySense magazine as the fourth best place to live in Canada for 2012, placed first on a list of "large cities by quality of life" and placed second in a list of "large cities of the future", both conducted by fDi Magazine for North and South American cities.