Support for asking the length of the stream

Needed because we occassionally needs to acquire the length of the
message and provided operations are valid and works.