Input (grade 11): There were 565 princely states when the Indian subcontinent became independent from Britain in August 1947.
Output (grade 8): There were 27 such independent rulers. When India became independent on 15th August 1947, Wodeyars' kingdom chose to become a part of India.