For perhaps the first time in the series, Alastair Cook must have been feeling good about the way things were going with the bat.