Question: What was the 2010 population of the county that includes Pinesdale, Montana?
Context: Marshfield is a city in Wood County and Marathon County in the U.S. state of Wisconsin.  It is located at the intersection of U.S. Highway 10, Highway 13 and Highway 97.  The largest city in Wood County, its population was 19,118 at the 2010 census.  Of this, 18,218 were in Wood County, and 900 were in Marathon County.  The city is part of the United States Census Bureau's Marshfield-Wisconsin Rapids Micropolitan Statistical Area, which includes all of Wood County (2010 population: 74,749).  The portion of the city in Marathon County is part of the Wausau Metropolitan Statistical Area. Ravalli County is a county in the southwestern part of the U.S. state of Montana.  As of the 2010 census, the population was 40,212.  Its county seat is Hamilton. Ocean County is a county located along the Jersey Shore in the U.S. state of New Jersey.  Its county seat is Toms River.  Since 1990, Ocean County has been one of New Jersey's fastest-growing counties.  As of the 2016 Census estimate, the county's population was 592,497, a 2.8% increase from the 576,567 enumerated in the 2010 United States Census, making Ocean the state's sixth-most populous county.  The 2010 population figure represented an increase of 65,651 (+12.8%) from the 2000 Census population of 510,916, as Ocean surpassed Union County to become the sixth-most populous county in the state.  Ocean County was also the fastest growing county in New Jersey between 2000 and 2010 in terms of increase in the number of residents and second-highest in percentage growth.  Ocean County was established on February 15, 1850, from portions of Monmouth County, with the addition of Little Egg Harbor Township which was annexed from Burlington County on March 30, 1891.  The most populous place was Lakewood Township, with 92,843 residents at the time of the 2010 Census (up 32,491 since 2000, the largest population increase of any municipality in the state), while Jackson Township, covered 100.62 sqmi , the largest total area of any municipality in the county. Toms River is a township in Ocean County, New Jersey, United States, and the county seat of Ocean County.  Formerly known as the Township of Dover, in 2006 voters approved a change of the official name to the Township of Toms River, adopting the name of the largest unincorporated community within the township.  As of the 2010 United States Census, the township had a total population of 91,239, with the township ranking as the 8th-most-populous municipality in the state in 2010 (after having been ranked 7th in 2000) and the second most-populous municipality in Ocean County (behind Lakewood Township, which had a population of 92,843).  The 2010 population increased by 1,533 (+1.7%) from the 89,706 counted in the 2000 Census, which had in turn increased by 13,335 (+17.5%) from the 76,371 counted in the 1990 Census. Madison is the capital of the U.S. state of Wisconsin and the county seat of Dane County.  As of July 1, 2016, Madison's estimated population of 252,551 made it the second largest city in Wisconsin, after Milwaukee, and the 82nd largest in the United States.  The city forms the core of the United States Census Bureau's Madison Metropolitan Statistical Area, which includes Dane County and neighboring Iowa, Green, and Columbia counties.  The Madison Metropolitan Statistical Area's 2010 population was 568,593. Vanderburgh County is a county located in the U.S. state of Indiana.  As of 2010, the population was 179,703.  The county seat is in Evansville.  While Vanderburgh County was the seventh largest county in 2010 population with 179,703 people, it is also the eighth smallest county in area in Indiana and the smallest in Southwestern Indiana, covering only 236 sq mi.  In 2012, the population was 180,835. Chambersburg is a borough in the South Central region of Pennsylvania, United States.  It is 13 mi north of Maryland and the Mason-Dixon line and 52 mi southwest of Harrisburg in the Cumberland Valley, which is part of the Great Appalachian Valley.  Chambersburg is the county seat of Franklin County.  According to the United States Census Bureau the 2010 population was 20,268.  When combined with the surrounding Greene, Hamilton, and Guilford Townships, the population of Greater Chambersburg is 52,273.  Chambersburg is at the core of the Chambersburg, PA Micropolitan Statistical Area which includes surrounding Franklin County.  The population of the Chambersburg Micropolitan Area in 2010 was 149,618. Waco ( ) is a city which is the county seat of McLennan County, Texas, United States.  It is situated along the Brazos River and I-35, halfway between Dallas and Austin.  The city had a 2010 population of 124,805, making it the 22nd-most populous city in the state.  The US Census 2016 population estimate is 134,432 The Waco Metropolitan Statistical Area consists of McLennan and Falls Counties, which had a 2010 population of 234,906.  Falls County was added to the Waco MSA in 2013.  The US Census 2016 population estimate for the Waco MSA is 265,207. Cheyenne ( or ) is the capital and most populous city of the US state of Wyoming and the county seat of Laramie County.  It is the principal city of the Cheyenne, Wyoming, Metropolitan Statistical Area which encompasses all of Laramie County.  The population was 59,466 at the 2010 census.  Cheyenne is the northern terminus of the extensive and fast-growing Front Range Urban Corridor that stretches from Cheyenne to Pueblo, Colorado, and has a population of 4,333,742 according to the 2010 United States Census.  Cheyenne is situated on Crow Creek and Dry Creek.  The Cheyenne, Wyoming Metropolitan Area had a 2010 population of 91,738, making it the 354th most populous metropolitan area in the United States. Pinesdale is a town in Ravalli County, Montana, United States.  The population was 917 at the 2010 census.
Answer: 40,212