The administrative unit of Hungary is called megye (historically, they were also called vármegye, or comitatus in Latin), which can be translated with the word county. The 19 counties constitute the highest level of the administrative subdivisions of the country together with the capital city Budapest, although counties and the capital are grouped into seven statistical regions.
Counties are subdivided to municipalities, the two types of which are towns and villages, each one having their own elected mayor and council. 23 of the towns have the rights of a county although they do not form independent territorial units equal to counties. Municipalities are grouped within counties into subregions (kistérség in Hungarian), which have statistical and organizational functions only.
The vármegye was also the historic administrative unit in the Kingdom of Hungary, which included areas of present-day neighbouring countries of Hungary. Its Latin name (comitatus) is the equivalent of the French comté. Actual political and administrative role of counties changed much through history. Originally they were subdivisions of the royal administration, but from the 13th century A.D. they became self-governments of the nobles and kept this character until the 19th century when in turn they became modern local governments.