How do we know how many events have been simulated

Dear all,
I just wrote an application to simulate a physical system and I am running it. But it only shows information like the following attached image. So is there any way we can know how many events in a run are happening? Thanks in advance.

would this be useful?

RunManager::GetCurrentRun()->GetNumberOfEventToBeProcessed();

Thanks. Should I include it in the MyEventAction() class and call it in the EndOfEventAction() function?

Hello, I use
/run/printProgress 100000
just write it in the running macro

Thank you. Your answer is very useful.