what number of terms did andrew johnson do?