How Many People Can The Earth Hold?

There are over seven million people currently living on Earth, but with limited resources, when will run out of room?