Double Jump?

How would I make my character do a double jump if the spacebar has been pressed twice? Sorry for the lack of information but theres nothing much to say.

Here!

Link to my answer on another question:

Double Jump?