In Iraq , American officers entering the country are now required to spend their first week at the sprawling military base at Taji , on the northwestern edge of Baghdad , attending a crash course in counterinsurgency .