28
Shell + coreutils, 6 wc -mc Test output: $ printf '%s' "(~R∊R∘.×R)/R←1↓ιR" | ./count.sh 17 27 $ In case the output format is strictly enforced (just one space separating the the two integers), then we can do this: Shell + coreutils, 12 echo`wc -mc` Thanks to @immibis for s...