summaryrefslogtreecommitdiff
path: root/num_tok
blob: 53b99a06ab217ec61e526ae6b7c0a72cea0b8a39 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env ruby

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


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