title: How do you count the values in a 2d list
body: <p>I am trying to count how many numbers appear in each row in a 2d list and then return the values with a new variable . For example, I would to like to return the items that are greater than or equal to that length.</p>
  
  <p>Here my list below</p>
  
  <pre><code>df = [[2,4,6,7],[3,4,],[2,4,6,8,12,24],[3,5,7,333,450],[4,20]]
  </code></pre>
  
  <p>I would like to create a new variable and return each row that is longer than 3.</p>
  
  <pre><code>df2 =[[2,4,6,7],[2,4,6,8,12,24],[3,5,7,333,450]]
  </code></pre>
  
  <p>I would like to create a new variable and return each row with exactly 2 elements.</p>
  
  <pre><code>df3 = [[3,4,],[4,20]]
  </code></pre>