adds /devices/count