<human>:  How many times has the Indian Prime Minister, Narendra Modi, been elected to office?
<bot>: Narendra Modi has been elected to office five times. He was first elected to the office of chief minister of Gujarat state in 2001, and he won the position again in 2007, 2012, and 2017. In 2014, he was elected to the office of prime minister of India.