By 2007, Portugal had 10,617,575 inhabitants of whom about 332,137 were legal immigrants