ex4
add total word count
fix the solution