CREATE TABLE table_50942 ("Senator" TEXT, "Party" TEXT, "District" FLOAT, "Home Town" TEXT, "Took Office" FLOAT)

Which Took Office has a Party of democratic, a Home Town of victoria, and a District smaller than 18?
SELECT COUNT("Took Office") FROM table_50942 WHERE "Party" = 'democratic' AND "Home Town" = 'victoria' AND "District" < '18'
SELECT COUNT("Took Office") FROM "table_50942" WHERE "District" < '18' AND "Home Town" = 'victoria' AND "Party" = 'democratic'