Counting lines,words,characters for given text file