Whenever Bag End Porter attacks, it gets +X/+X until end of turn, where X is the number of legendary creatures you control.
The value of X is determined only as Bag End Porter's triggered ability resolves. It won't change later in the turn if the number of legendary creatures you control changes.