It is counted from the start of the petition to immigrate, that is I140. I485 is just to adjust your status. So it is more reasonable to count from the date you your I140, rather than your I485.