This how I see it: (1) years is a so-called adverbial objective. That is, it is a noun that modifies a verb ( traveled). (2) years is modified by hundred (which is itself modified by two ) and by ago (being used as an adjective here).
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.