add devicecount