Ruby script added as solution to count_words problem