Try this:
(You can ignore the On Water bool). The jump counter var defines how many jumps you can make.