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