I'm trying to set up a quest (AAABardQuest) that counts the number of times the player completes a particular task. The quest is started whenever the player picks up a particular item (AAABardLute) and will end when the item leaves their inventory; otherwise, it is always active, and keeps an ongoing count of what I imagine will be a global int variable (increased by 1 each time the player completes the task, which involves selecting a particular dialogue option in AAABardQuest).
In the quest menu, all I want it to show is essentially "You have succeeded X times", where X is the global variable. How do I make that variable appear in the quest log?