parallelized word frequency counter