If you started school at age 5 and are currently in ninth grade, you would be approximately 14 or 15 years old, depending on when your birthday falls. Ninth grade is typically the 9th year of school (counting starting from kindergarten).
So, if you started school at age 5 and are now in ninth grade, you have been in school for 9 years.