title: Counting the particular words from array in other array
body: <p>I am trying to count the number of times, when specific words of array B appeared in array A. </p>
  
  <p>I tried the code below, but the output is 0. I do not understand, why it logs me the value that I assigned to the variable in the beginning of the function and does not run the 'for' cycle. </p>
  
  <pre><code>let A = ['really', 'basically', 'After', 'a','quick', 'popular', 'really', 'Red', 'began', 'very'];
  let B = ['really', 'very'];
  
  let number = () =&gt; {
    let count = 0;
    for (let i=0; i &lt; A.lengths; i++) {
      if (B.includes(A[i])) {
        return count++;
      }
    }
     return console.log(count);
   }
  
  number();
  </code></pre>
  
  <p>I expect the result should be 3.</p>