Hungary is governed under the constitution adopted in 2011. The president, who is the head of state, is elected by the legislature for a five-year term and is eligible for a second term. The government is headed by the prime minister, who is nominated by the president and elected by the legislature. The unicameral legislature, the National Assembly, has 386 members who are elected by popular vote to four-year terms. Administratively the country is divided into 19 counties, 23 urban counties, and the capital district.