NH and MA income, SS deduction

NH resident with NH income pays into social security. Spouse has MA W2 so they file MA-NR. Would the MA deduction for SS be $2000 or $4000? Logic says $2k but worth asking. Thanks!