Pakistan suffered $127bn losses in war against terrorism in 17 years