Here it is. 32 generations:
1.William I of England
2.Henry I of England
3.Empress Matilda
4.Henry II of England
5.John of England
6.Henry III of England
7.Edward I of England
8.Edward II of England
9.Edward III of England
10.Lionel of Antwerp, 1st Duke of Clarence
11.Philippa Plantagenet, 5th Countess of Ulster
12.Roger de Mortimer, 4th Earl of March
13.Anne de Mortimer
14.Richard Plantagenet, 3rd Duke of York
15.Edward IV of England
16.Elizabeth of York
17.Margaret Tudor
18.James V of Scotland
19.Mary, Queen of Scots
20.James I of England/James VI of Scotland
21.Elizabeth of Bohemia
22.Sophia of Hanover
23.George I of Great Britain
24.George II of Great Britain
25.Frederick, Prince of Wales
26.George III of the United Kingdom
27.Edward, Duke of Kent and Strathearn
28.Queen Victoria
29.Edward VII of the United Kingdom
30.George V of the United Kingdom
31.George VI of the United Kingdom
32.Elizabeth II