3 years count of GT Visa

If a person has spent a year on Tier 2 dependent visa and later they switched to GT visa, does that previous 1 year spent on Tier 2 visa count towards ILR?

YES it does. You can combine tier 2 work visas to global talent visas to get the years required before applying for ILR!