Mohács is seen by many Hungarians as the decisive downward turning point in the country's history, a national trauma that persists in the nation's folk memory. For moments of bad luck, Hungarians still say: "more was lost at Mohács" . Hungarians view Mohács as marking the end of an independent and powerful European nation. Whilst Mohács was a decisive loss, it was the aftermath that truly put an end to independent Hungary. The ensuing two hundred years of near constant warfare between the two empires, Habsburg and Ottoman, turned Hungary into a perpetual battlefield. The countryside was regularly ravaged by armies moving back and forth, in turn devastating the population. Only in the 19th century would Hungary regain some degree of autonomy, with full independence coming only after the First World War; however, the Treaty of Trianon awarded much of its former land to other states , and Hungary has never regained its former political power. In the 464 years from 1525 to 1989, Hungary spent the vast majority of the time under the direct or indirect domination of a foreign power. These foreign powers were, successively, the Ottoman Empire , the Holy Roman Empire , the Austrian Empire , and the Soviet Union ; furthermore, between 1867 and 1918 Hungary was widely considered the "junior" partner in the Austro-Hungarian Empire: autonomy was granted, but stopped well short of independence. The battlefield, beside the village of Sátorhely, became an official national historical memorial site in 1976 on the 450th anniversary of the battle. The memorial was designed by architect György Vadász. A new reception hall and exhibition building, also designed by Vadász and partially funded by the European Union, was completed in 2011.
Question: How many foreign powers dominated Hungary rom 1525 to 1989?
Answer: 4