title: Find word count using wc and assign to a variable
body: <p>i want the word count wc -w value be assigned to a variable</p>
  
  <p>i've tried something like this, but i'm getting error, what is wrong?</p>
  
  <pre><code>winget="this is the first line"
  
  wdCount=$winget | wc -w
  
  echo $wdCount
  </code></pre>