Gets the number of objects connected to the port.
Returns the number of objects connected to the port.