<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_max_port_count_for_storage_bus(self, bus):
 """Returns the maximum number of ports the given storage bus supports. in bus of type :class:`StorageBus` The storage bus type to get the value for. return max_port_count of type int The maximum number of ports for the given storage bus. """

        if not isinstance(bus, StorageBus):
            raise TypeError("bus can only be an instance of type StorageBus")
        max_port_count = self._call("getMaxPortCountForStorageBus",
                     in_p=[bus])
        return max_port_count