Working out how many school pupils to budget for may well prove to be a headache for the government.