Ricky Ponting scored an unbeaten 169 in his final first-class innings in Surrey's clash against Notts.