The term “number of years of holding the property” in (a) or (b) means the number of years as from the year of the acquisition of ownership or possessory right in an immovable property to the year of the transfer of such ownership or possessory right. A period exceeding 10 years shall be treated as 10 years only, and a fraction of a year shall be counted as 1 year.23