user: ### NOW ANSWER:
Question: How many first elected years are provided for Thomas P. Moore?
Columns: ['District', 'Incumbent', 'Party', 'First elected', 'Result', 'Candidates']
Types: ['text', 'text', 'text', 'text', 'text', 'text']
Sample row: ['Kentucky 1', 'Henry Daniel', 'Jacksonian', '1827', 'Re-elected', 'Henry Daniel (J) 66.6% Micajah Harrison (AJ) 33.4%']
SQL:

assistant: SELECT COUNT("First elected") FROM "Table" WHERE "Incumbent" = 'Thomas P. Moore';