California is the most populated sub-national entity in North America. If it were an independent country, California would rank 34th in population in the world. It has a larger population than either Canada or Australia. Its population is one third larger than that of the next most populous state, Texas. California surpassed New York to become the most populous state in 1962. California's population growth has slowed dramatically in the 21st century. In 2010, the state's five most populous counties were Los Angeles County, San Diego County, Orange County, Riverside County, and San Bernardino County, with Riverside County having the largest percentage increase in population. The largest metro areas in California, as of 2010, are Los Angeles, San Francisco-Oakland-San Jose, San Diego, Riverside-San Bernardino, and Sacramento. From 2006 until 2016, the state lost a net population of about 1 million people from emigration to other states,</ref> yet the population of the state continued to grow due to immigration from overseas and more births than deaths.