Write SQL query to solve given problem: Among the legislators who will end in 2009, how many are from the Republican party?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT `END`, party FROM `current-terms` WHERE STRFTIME('%Y', `END`) = '2009' AND party = 'Republican'