Updated countLines script to exclude comments and blank lines