James Anderson lasted just four balls of the morning session before an outswinging short ball from Kagiso Rabada caught him out.