rahulg How many years of legal residence are usually required before applying for permanent residency, and does time spent on student or tourist visas count?