The Anglo-Spanish War  was an intermittent conflict between the kingdoms of Spain and England that was never formally declared. The war was punctuated by widely separated battles, and began with England's military expedition in 1585 to the Netherlands under the command of the Earl of Leicester in support of the resistance of the States General to Spanish Habsburg rule. The English enjoyed some victories at Cádiz in 1587, and saw the Spanish Armada retreat in 1588, but then suffered severe defeats of the English Armada in 1589 and the Drake-Hawkins and Essex-Raleigh expeditions in 1595 and 1597 respectively. Two further Spanish armadas were sent in 1596 and 1597 but were frustrated in their objectives mainly because of adverse weather and poor planning. The war became deadlocked around the turn of the 17th century during campaigns in the Netherlands, France and Ireland. It was brought to an end with the Treaty of London, negotiated in 1604 between representatives of the new King of Spain, Philip III, and the new King of England, James I. England and Spain agreed to cease their military interventions in the Spanish Netherlands and Ireland, respectively, and the English ended high seas privateering.
Question: How many countries were involved in the Anglo-Spanish war?
Answer: 2