Here is my problem: Any number of lines of text is given from standard input. Output: number of non repeating lines
INPUT:
She is we
You could try using uniq man uniq and do the following
man uniq
sort file | uniq -u | wc -l