So I figured it out!
Basically I have my max jump count set to 2 by default, and whenever I initiate a wallrun it gets increased by one, however it is clamped so that it can only greater than the current jump count by 1, as otherwise you could farm essentially infinite double jumps by reattaching to walls without double jumping. When jumping off of a wall I use my own code so a jump isn’t used. Landing resets the max jump count to 2.