Added connection counter to InputPort because this port only support one connection.
Added connection counter to InputPort because this port only support one connection.

baffelli/pyperator,baffelli/pyperator