some shell script to count different information based on the map-reduced dataset