How many long rests can we actually take?

I burned up all my spells on the goblin fight outside the druid camp and had already used up my short rest before that, and am still unsure if I should use a long rest