If you travel by land, before you cross the border, use your credit card to buy some groceries or fill your gas tank at the US side. You then have some physical evidence to support when is last time you are in US.
If you travel by air, you can ask the Canadian border agent to stamp your passport if he/she does not do so.