Functionality to allow querying device counts
Some minor renames: getDeviceCount->getOutputCount, device_count->output_count