Residency Obligation
You must meet the residency obligation to obtain a Permanent Resident Card. If you have been a permanent resident for five years or more: you must have been physically present in Canada for a minimum of 730 days within the past five years. If you have been a permanent resident for less than five years: you must show that you will be able to meet the minimum 730 days in Canada at the five-year mark.
You may also count the days you spent outside of Canada in the following circumstances as days for which you satisfy the residency obligation:
OPTION 1. Accompanying a Canadian citizen outside Canada
You may count each day you accompanied a Canadian citizen outside Canada provided that the person you accompanied is your spouse, common-law partner or parent (if you are a child under 22 years of age).
http://www.cic.gc.ca/english/information/applications/guides/5445EA.asp