At the same time the Baku Commune was involved in heavy fighting with the advancing Caucasian Ottoman Army in and around Ganja. The Ottoman Empire's Enver Pasha began to move forward with the newly established Army of Islam. Major battles occurred in Yevlakh and Agdash. Dunsterville ordered the evacuation of the city on September 14, after six weeks of occupation, and withdrew to Iran; most of the Armenian population escaped with British forces. The Ottoman Army of Islam and its Azeri allies, led by Nuri Pasha, entered Baku on September 15 and slaughtered between 10,000-20,000 Armenians in retaliation for the March massacre of Muslims. The capital of the Azerbaijan was finally moved from Ganja to Baku. However, after the Armistice of Mudros between the United Kingdom and the Ottoman Empire on October 30, Turkish troops were substituted by the Triple Entente. Headed by British Gen. W. Thomson, who had declared himself the military governor of Baku, 1,000 Commonwealth soldiers arrived in Baku on November 17, 1918. By Gen. Thomson's order, martial law was implemented in Baku.
Question: How many months did it take for Gen. Thomson to implement martial law in Baku after the initial invasion of the city?
Answer: 2