Count lawful residence immediately before you apply, not visits. Your CRNM card and its renewals show the dates. A lapsed permit or a long absence can restart the count.