You will be given a definition of a task first, then some input of the task.
Answer the question from the given passage. Your answer should be directly extracted from the passage, and it should be a single entity, name, or number, not a sentence.

Passage: The programme's first serial, An Unearthly Child, shows that the Doctor has a granddaughter, Susan Foreman. In the 1967 serial, Tomb of the Cybermen, when Victoria Waterfield doubts the Doctor can remember his family because of, 'being so ancient', the Doctor says that he can when he really wants to—'The rest of the time they sleep in my mind'. The 2005 series reveals that the Ninth Doctor thought he was the last surviving Time Lord, and that his home planet had been destroyed; in 'The Empty Child' (2005), Dr. Constantine states that, 'Before the war even began, I was a father and a grandfather. Now I am neither.' The Doctor remarks in response, 'Yeah, I know the feeling.' In 'Smith and Jones' (2007), when asked if he had a brother, he replied, 'No, not any more.' In both 'Fear Her' (2006) and 'The Doctor's Daughter' (2008), he states that he had, in the past, been a father. Question: In what year did Doctor Who state that he was the last Time Lord?
Output:
2005