word count alg added(TODO: paralg_read_all must be added in ps.py)