add modified count_sentences.rb file