Easy Way to Count/Display Number of Events of Map?

Hi,

Is there an easy way to count/display number of events on a map?
have every event set to parallel or autorun, increment the value of a variable (ensure every event is increasing the same variable) by 1, then activating self switch A. you now have the number of events. displaying it is as simple as using SRD Hud Maker to create a small text display outputting the variable's value.
If you want to count all events on the map:
Code:
$gameMap.events().length
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/easy-way-to-count-display-number-of-events-of-map.131677/