Counting occurences of action in applescript

I’ve worked (and received help) to get an applescript to perform a series of Find and Replace tasks in InDesign but would love a dialog that tells me how many of each task it’s performed. Like the regular F&R does. How would i write code to have my script do that?

I have it generating a dialog saying what is being done when it starts and a dialog that says that it is “Done”.

Also, how could I have it play a beep or sound when it’s done too?