The COUNT(param) function is used to count the number of devices, and has an required parameter which can be any of the following:
| devices | Return count of all devices the user has access to |
| activedevices | Return count of all devices currently active |
| inactivedevices | Return count of all devices currently inactive |
COUNT('activedevices')
Return the number of devices currently active