J1 visa Teacher exempt

What I understand is teachers under J1 visa are exempt from counting days for 2yrs in 6yr person. Making a teacher a non resident of the US. As a teacher from Spain there is no teacher purpose code. Would claiming code 23 exempt from double taxation be correct or 15 as receiving income from an employer with W2?