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