How to show messages sent while php is looping

How to show messages sent while php is looping

I have a php loop that is sending emails and I would like to have a message within a <div> that shows the number of messages sent.

<div id=msgBox>
  echo $sent;
</div>

Is that something easy for a relatively new Jquery user?

Todd