Skip to content

Instantly share code, notes, and snippets.

@prathamesh-sonpatki
Created August 21, 2012 14:19
Show Gist options
  • Save prathamesh-sonpatki/3415903 to your computer and use it in GitHub Desktop.
Save prathamesh-sonpatki/3415903 to your computer and use it in GitHub Desktop.
until STDIN.eof?
puts gets.scan(/\w+/).length
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment