write ruby program to count the number of words and lines in a text file