Recreates funcionality of the command (rev | sort | uniq -c | tee outfile2| wc) < simple1.txt > outfile1 using 5 stages of processes connected by pipes.