Since 1947 India has had 14 prime ministers, 15 including Gulzarilal Nanda who twice acted in the role, of which 6 having at least one full term, ruling country for about 60 years. The first was Jawaharlal Nehru of the Indian National Congress party, who was sworn in on 15 August 1947, when India gained independence from the British Raj. Serving until his death in May 1964, Nehru remains India's longest-serving prime minister. He was succeeded by fellow Congressman Lal Bahadur Shastri, whose 1 year 7-month term also ended in death. Indira Gandhi, Nehru's daughter, succeeded Shastri in 1966 to become the country's first woman prime minister. Eleven years later, she was voted out of power in favour of the Janata Party, whose leader Morarji Desai became the first non-Congress prime minister. After he resigned in 1979, his former deputy Charan Singh briefly held office until Indira Gandhi was voted back six months later. Her second stint as prime minister ended five years later on 31 October 1984, when she was assassinated by her own bodyguards. Her son Rajiv Gandhi was then sworn in as India's youngest premier and the third from his family. Members of NehruGandhi family have been prime minister for a total of 37 years and 303 days.