Implemented mapreducer for counting pages and page rank calculation.