After years of losing its foreign population , Spain 's immigration figures started to pick up in 2015 , with the number of people that moved to the Mediterranean country surpassing the number of foreigners that decided to leave .