How many devices are there?
select count(*) from device