countwords.rb

it counts how much words are in a string