#!/usr/bin/env ruby

require 'zipf'

while line = STDIN.gets
  puts tokenize(line.strip).size
end