document_counter.py multithreading