Count only continuous years on the family residence permit. Your residence card shows when it started.