title: Count the number of lines in a file using python and wc -l
body: <p>I have this command on linux which I have problem converting into <code>type</code>  on Windows:</p>
  
  <pre><code>row = run('cat '+'C:/Users/Kyle/Documents/final/VocabCorpus.txt'+" | wc -l").split()[0]
  </code></pre>
  
  <p>For the statement " wc - l"  is for the line count to see how many lines exist. If I were to change it to the following using "type" command, what should it be?</p>
  
  <p>I tried this and it doesnt work.</p>
  
  <pre><code> row = run('type '+'C:/Users/Kyle/Documents/final/VocabCorpus.txt'+" | wc -l").split()[0]
  </code></pre>
  
  <p>The run command is below:</p>
  
  <pre><code>def run(command):
      output = subprocess.check_output(command, shell=True)
      return output
  </code></pre>
  
  <p>Please help me. Thank you.</p>