Mathematical Methods in Counterterrorism