I guess it depends where you are starting from...
4 years college (or really, however long it takes to get your bachelor's degree)
4 years medical school (apply for Ophtho during your 4th year)
1 internship year (i believe u can do medicine, surgery, pediatrics, or transitional year)
3 years of residency
1-3 years of fellowship....most are 1 year, a few are 2 years, and some research ones can be up to 3 years I hear (much more rare though)
the end...celebrate the wonderful career path you chose!