More pupils are taking GCSEs in foreign languages and science this year.