In actual numbers , there were roughly two thousand smallpox deaths per year in Sweden during the pre-vaccination era ; optional vaccination helped bring this average down to 623 deaths between 1802 and 1811 , while the number dropped to 176 between 1857 and 1866 when compulsory vaccination was introduced .