getting player's "air" amount

Is it possible to get player's "air" amount and store it to eg. scoreboard? By air amount I mean the bubbles that the player has when underwater. I want to execute a function when the player has it >0 (checking if player is above water can't work, because you don't refill air instantly)

Continue to help post