Implement a document scanning engine that receives a text document doc and returns a list of all unique words in it and their number of occurrences, sorted by the number of occurrences in descending order.
The engine should ignore punctuation and white-spaces.
example:
|