The United Nations says there could be 10 billion people on Earth by the end of the century. Fred Pearce finds problems in its analysis.