added wc -l function