In 1712, Tordenskjold succeeded in burning 80 Swedish naval cruisers, which played a large part in the outcome of the Great Nordic War . Since Scandinavia now was at peace, the navy focused its resources on other parts of the world, partaking in the colonisation of Africa and the Caribbean. A permanent naval presence of shifting strength was maintained in the Mediterranean Sea - protecting Danish-Norwegian interests in the region - mainly commerces against piracy. The Danish Mediterranean Squadron had numerous minor engagements with The Barbary States during the 1700s and 1800s. On several occasions these hostilities escalated to substantial actions. Some of the more notable can be said to be: the Mediterranean Squadron's bombardment of Algiers in 1770 under the command of contreadmiral Frederik Christian Kaas; the then captain, and future Privy Councillor, Steen Andersen Bille's action at Tripoli in 1797; and commander Hans Georg Garde in a joint Scandinavian expedition in 1844 - which effectively ended the Barbary states' attacks on Scandinavian merchants in the region. A pact of neutrality was made between Denmark  and Sweden, providing a solid basis for commercial expansion.
Question: How many countries was the naval presence there to protect?
Answer: 2