Nick Compton helped Alastair Cook hit his 23rd test century against India and become the youngest player to reach 7000 test runs. They put on 165 for the opening England wicket.