To know the number of emails used by each run user

To know the number of emails used by each run user

Good day,

I would like to know if there is any code for an analysis to be able to know the amount of emails sent by the run user.

Let me explain: each end user can send a csv through a widget, but I would like to limit the amount of emails that can be sent to be able to distribute the available emails among all end users.

I tried to use this code but it does not execute.




Thank you very much.