[Parallel] Lexer: Return the number of processed words

This information will be needed to show in the progress indicator.
[Parallel] Showing progress indicator properly

Now all the messages/status that will be printed on the output should
be done through the Logger module.