Send how many commands will be sent.
Fixed strange pipe issue.