Count the number of devices.
select count(*) from device