fix rubocop errors from word_count and word_count spec