summaryrefslogtreecommitdiff
path: root/num-tok
blob: 56cbae91ac6f99bc846c3c41ec51a3a137d11dfa (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env ruby

STDIN.set_encoding 'utf-8'
STDOUT.set_encoding 'utf-8'

while line = STDIN.gets
  puts line.strip.split.length
end