Count Valid Permutations with Jumps