Am I resident alien or non-resident alien? G-4 visa to F-1

Hi,

 

I came to the US to work with a G-4 Visa in November 2014. Stayed with my G-4 Visa until May 2016 when I switched to F-1. Have stayed in the US with F-1 Visa since.

 

Do I pass the substantial presence test for tax year 2019? Are the days I was in the US under a G-4 visa considered for the 5 year F-1 rule?