Refactor word_count with my favorite method - inject