Handle device count