Hashim Amla was delighted with South Africa's efforts as they recovered to a respectable total on the first day of their final Test with Pakistan.