Actually I have implemented two pipes in c program......

It will get you the value for :-

ls -l | tee f1 | wc -l

Here goes the program..........

#include <stdio.h>
#include <string.h>