code: def _resolve_hardware_count(self):
          
          length = len([d for d in self._dut_requirements if d.get("type") in ["hardware",
                                                                               "serial", "mbed"]])
          self._hardware_count = length
docs: Calculate amount of hardware resources.
  
          :return: Nothing, adds results to self._hardware_count