two
Spain and Portugal.
There are no countries suspended above the continent of Africa. There are many countries just north across the Mediterranean Sea. Two of them that seem to reach down almost to touch Africa are Italy and Spain.
Of course you can. Spain actually borders Morocco, as there are two Spanish exclaves located on the African mainland. You can also take a ferry across the Strait of Gibraltar or fly.
Portugal and Andorra are the two countries on the Iberian Peninsula that share a border with Spain.
Spain and Portugal
The two countries that border Andorra are Spain and France.
Spain is the country that lies closest to the north African coast, specifically to the southern coast of Spain across the Strait of Gibraltar. The distance between the two places is only about 8 miles at its narrowest point.
Spain and Poland
Spain and Portugal
Spain and Morocco
Spain and Portual are the two main countries on the Iberian Peninsula.