There are 33 counties in the U.S. state of New Mexico.
The New Mexico Territory was organized in September 1850. The first nine counties in the territory to be created, in 1852, were Bernalillo, Doña Ana, Rio Arriba, San Miguel, Santa Ana, Santa Fe, Socorro, Taos, and Valencia Counties. Mora County was created in 1860. Following the Gadsden Purchase of 1853–1854, the northeasternmost part of the New Mexico Territory was ceded to the new Colorado Territory in February 1861, before the western half was reorganized as the Arizona Territory in February 1863, establishing New Mexico's present-day boundaries.