The political relationship between England and Ireland dates from the 12th century with the establishment of the Lordship of Ireland. After almost four centuries of the Lordship, the declaration of the independence of the Church of England from papal supremacy and the rejection of the authority of the Holy See required the creation of a new basis to legitimise the continued rule of the English monarch in Ireland. In 1542, the Crown of Ireland Act was passed by both the English and Irish Parliaments. The Act established a sovereign Kingdom of Ireland with Henry VIII as King of Ireland. Both parliaments later passed the Acts of Union 1800 by which a new state was created - the United Kingdom of Great Britain and Ireland. In 1922, twenty-six counties of Ireland gained autonomy from the U.K. as the Irish Free State; in 1949, the State was declared to be a Republic and the last vestiges of royal power were abolished. The Republic of Ireland left the Commonwealth of Nations. The remaining six counties of the island of Ireland constituted the territory of Northern Ireland. In 1927, the realm, consisting of combined territories of Northern Ireland and Great Britain, was renamed the "United Kingdom of Great Britain and Northern Ireland". Today, unionism is almost exclusively an issue for Northern Ireland. It is concerned with the governance of and relationship between Northern Ireland and Great Britain.
Question: How many years after the Irish Free State was created was it declared to be a Republic?
Answer: 27