Returns the count of online routers. Useful when reconciling services in the Gradient MSP billing module.
Devices[?attributes.deviceType == 'router'&& attributes.onlineStatus =='online'] |length(@)