I believe the requirement is that you need to stay in north america (including USA and canada) for 5 years to qualify the ERC. Sometimes they will count your stay in some european countries such as British, Germany, France, etc. as well. But it may take longer time to check