Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
### Context:
CREATE TABLE table_2668173_4 (first_elected VARCHAR, result VARCHAR)
### 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"