Count encoded bytes in Perl 6 The bytes method is available for buffers (Buf objects). $count = $utf8.bytes;