Definition: In this task, you're given passages that contain mentions of the quantity of a particular object and are supposed to find out the answer for a given question. Craft one correct answer to the question given in input. Make sure your correct answer is consistent with the context, and properly gives the exact number relating to the query.
 In your answer, use as few words as possible from the given context. To be less repetitive, please vary your language for each question.
Input: Sentence: Starting in 1236, the Mongol prince Kublai, who later ruled as Khagan from 1260–1294, was granted a large appanage in North China by his superior, Ögedei Khan. Karma Pakshi, 2nd Karmapa Lama (1203–1283)—the head lama of the Karma Kagyu lineage of Tibetan Buddhism—rejected Kublai's invitation, so instead Kublai invited Drogön Chögyal Phagpa (1235–1280), successor and nephew of Sakya Pandita, who came to his court in 1253. Kublai instituted a unique relationship with the Phagpa lama, which recognized Kublai as a superior sovereign in political affairs and the Phagpa lama as the senior instructor to Kublai in religious affairs. Kublai also made Drogön Chögyal Phagpa the director of the government agency known as the Bureau of Buddhist and Tibetan Affairs and the ruling priest-king of Tibet, which comprised thirteen different states ruled by myriarchies. 
Question: How many states were ruled by myriarchies?
Output:
thirteen