hey, I already asked this question and I wonder if you've come across the same situation since last year.
The questions was this last time and I'll just copy it :)
"I was counted against the H1-B cap in 2017 and worked for about 3 months before I left the states.
Would I be able to use the rest of my time now if I were to get a job in the states?"
The answer is probably. We've done it for people who last were in H-1B status 10 years ago.