H1 - H4 and back to H1- 6year period


I got my H1B in 2016 OCT and valid until 2019 OCT. If, I change to H4 on June 2018 and would like to change back to H1B on June 2019, Do they consider the time I have been on H4 as well towards H1B 6year period?