Problem 3a

Problem 3b

The word count is