Your idea makes perfect sense, and while this is not possible from the console it is perfectly doable with a bit of authoring.
Actually, the number of alerts is already collected and published as a perf counter out of the box by this rule : https://systemcenter.wiki/?GetElement=ManagementGroupCollectionAlertsCountRule&Type=Rule&ManagementPack=Microsoft.SystemCenter.OperationsManager.SummaryDashboard&Version=10.19.10050.0
I'm not too sure about a "number of agents count" rule, but you can reuse the same principle as the Alert Count one fairly easily, even with limited authoring knowledge :)
Or you could indeed use any other method, they are all relevant and basically rely on the same principle... if you try to untangle the chain of datasources used by both the ManagementGroupCollectionAlertsCountRule and the rules created by Cookdown Powershell MP, you'll see that they eventually end up using a Powershell scripted datasource and a Perf data mapper :)