The Social Security Administration has agreements with 24 countries. Your work credits will be counted for SSBs if you are working in any of them. You can see the list of countries here.