[linux] Counting number of characters in a file through shell script