Hi!
Yes, you can introduce counters for back bets and lay bets (individually for each markets) and add the size of the bet you are placing simultaneously with that bet (i.e., add a second action that sets this variable to the trigger that places the bet).
However, you would only be able to maintain those variables for the market as a whole, not for individual selections. This should be fine if you only bet on one selection.