Update countfreq.sh.

Replace python part with a c++ program (getcorpus.cpp).

Performance now is the best.