If you're using EDDI, it should trigger a command named ""((EDDI jumping))" when the jump starts, and a command named"((EDDI jumped))" after you've arrived.
You can use those to decrement a variable storing the amount of jumps left(set beforehand), which you can then check with another command to tell you how many are left.