It's not just the raw number of years spent on each ship. It's about the experiences made while on them. It's quite obvious the years onboard the Ent-D have been way more formative for Picard as to who he is than the years on the Stargazer or Ent-E. Simply because more life-altering stuff happened there and he met more lifelong friends. That's perfectly reasonable.