Count from the date the resident visa was issued, which is printed on it. Years on earlier migrant visas do not count here.