Create Top N words in a document.cpp