Task: Question Answering
Input (English): Passage: The 24th Infantry was re-instituted in 1995 and assigned to the 1st Brigade, 25th Infantry Division in Fort Lewis, Washington. The regiment served in the Iraq War from 2004 to 2005, and was decorated for its service. In 2006, during a re-organization of the Army, the regiment was re-flagged; however, the 1st Battalion was not included, and so it alone retains the regimental designation and carries on its legacy. It is now part of the 1st Brigade Combat Team , 25th Infantry Division at Fort Wainwright, Alaska. 
Question: For how many years did the 24th Infantry serve in the Iraq war? 
Answer type: Number 
Output (English): 2.