Reference this as I made some tweaks from an exchange resource, but this will summarize alarms and get counts, etc.