This output is not used as text file.It is entered in the command window of the matlab those functions(count,findstr()) works using only in the file.
Enter a text:
I am a man
I love my mother
I love movie$
Kindly help me using character array or cell array no more predefined functions should be used