The way to accomplish this is to report device count as state, as to show a value on a dashboard, it has to be a state from a device.
To start, create a new device, and give it an attribute for the device count.
Next, grab the Losant API node and set the Resource and Action to Devices: Get, and a payload will output with a device count.
Add a Device State node and use the payload path for the device count to update the “count” attribute in your new device.
You will then be able to use this device and it’s count attribute to show the number of devices in your application!