Update examples/wordcount.jl. Ref. #7332

- Use `require` to load file on all processes
- Change file extension from ".j" to ".jl"
- Cosmetic changes to `for` loops, using `in` keyword for non-numeric
  iterables and using nested loop syntax
- Rename push -> push!, pop -> pop!