At the Battle of Montenotte Bonaparte defeated the Austrians and fought a second engagement around Dego soon after. Following these battles he launched an all-out invasion of Piedmont and won a further victory at Mondovì. Piedmont was forced to accept the Armistice of Cherasco on 28 April, knocking it out of the war and the First Coalition. It had taken Bonaparte just a month to defeat Piedmont (between his arrival and the armistice), a country which had resisted the French armies for over three years. Total losses during the lightning campaign were 6,000 French troops and over 25,000 Allied.