Pakistan ready to counter any external threat: Nawaz Sharif