sentences:  The nominal leader of the uprising, the last Mughal emperor Bahadur Shah Zafar, was exiled to Burma, his children were beheaded and the Moghul line abolished.In the aftermath all power was transferred from the East India Company to the British Crown, which began to administer most of India as a colony; the Company's lands were controlled directly and the rest through the rulers of what it called the Princely states.There were 565 princely states when the Indian subcontinent gained independence from Britain in August 1947.