Glad that was of use to you.
I couldn't help but ask myself though, what does getting distracted actually mean? Losing/forgetting count, or noticing something else while simultaneously keeping track of the count? The former seems ridiculously easy to avoid.
I would describe "distracted" as being when you lose the object entirely, for example: if you get caught up with the inner narrative, or if some particular mental fantasy draws your attention from the breath for
x amount of time, that, in my experience, is being distracted. It's noticing that you
were distracted that tells you you're back where you want to be.
If you want to get into jhana, stay with the breath/count itself; it you're doing insight practice, the breath is the anchor which allows you to safely explore, just notice whatever else is arising at that moment and come back to the breath if you get distracted or spooked; imagine you're learning to swim at the local pool, you gradually learn to move out a little further from the edge until you're able to stay afloat by yourself. In this case, the breath is the edge of the pool away from which you can move as you become more confident and skilled, which in this case would be your ability to investigate with clarity and accuracy.