F-1 visa substantial presence test

I first came to the U.S under F-1 visa on 08/19/2014, but I had t take a leave of absence that semester and left on 09/28/2014. I came back on 01/16/2015 and resumed my studies continuously until now 2020. Am I qualified to file the 2019 tax year as a resident alien? Will 2014 still be counted as my first year even though I did not stay for long? Thank you very much!