Counting no of lines entered at commandline