Chinese officials say they are training more than 40,000 police officers to provide security and prevent terrorism during the 2008 Olympics .