code: def query_target_count(self, target):
      
      reply = NVCtrlQueryTargetCountReplyRequest(display=self.display,
                                                 opcode=self.display.get_extension_major(extname),
                                                 target_type=target.type())
      return int(reply._data.get('count'))
docs: Return the target count