CREATE TABLE table_2668173_4 (first_elected VARCHAR, result VARCHAR)

How many times did the incumbent was first elected and then lost re-election anti-masonic gain?
SELECT COUNT(first_elected) FROM table_2668173_4 WHERE result = "Lost re-election Anti-Masonic gain"
SELECT COUNT("first_elected") FROM "table_2668173_4" WHERE "Lost re-election Anti-Masonic gain" = "result"