You will be given a definition of a task first, then some input of the task.
This task involves creating answers to complex questions, from a given passage. Answering these questions, typically involve understanding multiple sentences. Make sure that your answer has the same type as the "answer type" mentioned in input. The provided "answer type" can be of any of the following types: "span", "date", "number". A "span" answer is a continuous phrase taken directly from the passage or question. You can directly copy-paste the text from the passage or the question for span type answers. If you find multiple spans, please add them all as a comma separated list. Please restrict each span to five words. A "number" type answer can include a digit specifying an actual value. For "date" type answers, use DD MM YYYY format e.g. 11 Jan 1992. If full date is not available in the passage you can write partial date such as 1992 or Jan 1992. If you find multiple spans, please add them all as a comma separated list. Please restrict each span to five words.

Passage: Von Heideck studied art in Zurich. In 1801, he entered the military academy in Munich. Since 1805 he was in the Bavarian army, he took part to the campaigns in Austria, Prussia and Tyrol, then in Spain after 1810. In 1814, with the rank of Major, he accompanied the crown prince and future Ludwig I of Bavaria to the Congress of Vienna. In 1826, he went to help the Greeks fight for their independence against the Ottoman Empire, during the Greek War of Independence. In 1827, he took part under the orders of Thomas Gordon to the attempt to help the Acropolis of Athens. In 1828, Ioannis Kapodistrias named him commander of Nafplion and a few month later military governor of Argos. In 1830, he went back then to Munich and got back his rank of colonel of the Bavarian army. He started again to paint. In 1832, when Otto the second son of Ludwig I of Bavaria was designated to become king of Greece, Heideck was nominated to the regency council. It is traced, that he lived at Kasern Strae 12 in Munich around 1850. The Heideckstrae in the quarter Neuhausen of Munich is named in honor of him.
Question: How many years after entering the Bavarian Army did Von Heideck travel to the COngress of Vienna?
Answer type: Number
Output:
9.