Younis Khan was evidently thrilled as he hit a record 26th Test ton for Pakistan, as his side took control of the first Test against Australia.