How Many People can Live on Earth?

A calculation from first principles.