Read document and count words. And give the final result how many times word repeats