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