Complex sentence: France does not allow the official census to count ethnic or religious categories, but does count number of people born in a foreign country.
Split into simpler sentences: France does not allow official census of ethnic or religious categories. The census still gives the number of people born in a foreign country.