Get the number of years in the range. A year is considered to have passed if twelve full months have passed
between the start date and end date, according to the definition of 'month' in lengthInMonths.
Exceptions
UnsupportedOperationException - if the range isn't bounded