Add global counter for derived monitors in BaseMonitor

Improve comments