How many autonomous communities are not on the Spanish mainland?

There are two autonomous communities that are not on the Spanish mainland:

1) The Canary Islands

2) The Balearic Islands

Copyright Wanderlust World © https://www.ynyoo.com