length -package:bytestring -package:utf8-string package:pipes

Count the number of elements in a Producer