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.

Example input: Passage: The outbreak of the Seven Years' War in Europe in 1756 resulted in renewed conflict between French and British forces in India. The Third Carnatic War spread beyond southern India and into Bengal where British forces captured the French settlement of Chandernagore in 1757. However, the war was decided in the south, where the British successfully defended Madras, and Sir Eyre Coote decisively defeated the French, commanded by Comte de Lally at the Battle of Wandiwash in 1760. After Wandiwash, the French capital of Pondicherry fell to the British in 1761. The war concluded with the signing of the Treaty of Paris in 1763, which returned Chandernagore and Pondichery to France, and allowed the French to have "factories" in India but forbade French traders from administering them. The French agreed to support British client governments, thus ending French ambitions of an Indian empire and making the British the dominant foreign power in India.
Question: Which french settlement did the British capture first, Chandernagore or Pondicherry
Answer type: Span
Example output: Chandernagore
Example explanation: British captured Chandernagore in 1757 ("The Third Carnatic War spread beyond southern India and into Bengal where British forces captured the French settlement of Chandernagore in 1757") and Pondicherry in 1761 ("After Wandiwash, the French capital of Pondicherry fell to the British in 1761."). Since 1757<1761, the answer is "Chandernagore".
Q: Passage: On November 9, 1799, Telemaque won $1500 in a city lottery. At the age of 32, he bought his freedom for $600 from Vesey. He took the surname Vesey and the given name of 'Denmark,' after the nation ruling his birthplace of St. Thomas. Denmark Vesey began working as an independent carpenter and built up his own business. By this time he had married Beck, an enslaved woman. Their children were born into slavery under the principle of partus sequitur ventrem, by which children of a slave mother took her status. Vesey worked to gain freedom for his family; he tried to buy his wife but her master would not sell her. This meant their future children would also be born into slavery. Along with many other slaves, Vesey had belonged to the Second Presbyterian church, and chafed against its restrictions on black members. In 1818 he was among founders of a congregation on what was known as the "Bethel circuit" of the African Methodist Episcopal Church . This had been organized in Philadelphia, Pennsylvania in 1816 as the first independent black denomination in the United States. The AME Church in Charleston was supported by leading white clergy. In 1818 white authorities briefly ordered the church closed, for violating slave code rules that prohibited black congregations from holding worship services after sunset. The church attracted 1848 members, making it the second largest AME church in the nation. City officials always worried about slaves in groups; they closed the church again for a time in 1821, as the City Council warned that its classes were becoming a "school for slaves" . Vesey was reported as a leader in the congregation, drawing from the Bible to project hope for freedom.
Question: How many years after the founding of the African Methodist Episcopal Church was it closed for a second time?
Answer type: Number
A:
3.