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