Denmark’s population grew by just under 31,500 people last year, primarily because of immigration into the country.