I have been on H1 since October 2016. My visa is valid until December 2018 and my i-797 till September 2019. If I plan to do a masters for 2 years (say starting from January 2019), will those two years be counted in my 6 years of H1 allowance even if I shift to F1?