#!/usr/bin/ruby # -*- coding: utf-8 -*- =begin 단어 수 세기 =end str = "Hello World" puts str.split.count