in reply to Counting bytes in a Unicode document

The solution is

just to count the bytes, if that's really what you want.

my $bytecount = (stat $file)[7];

🦛