title: Counting of elements in list not producing expected result
body: <p>I have a pandas dataframe dftouse['col a'] which consists of lists :</p>
  <pre><code>0        []                            
  1        [carbon, nature]              
  2        [Lincoln]                     
  3        [CBDC]                        
  4        [] 
  </code></pre>
  <p>I want to count elements in each list across the rows. When I am executing</p>
  <pre><code>dftouse['Col a'].apply(lambda x: (len(x)-1) if not x else len(x))
  
  0        1
  1        2
  2        1
  3        1
  4        1
  </code></pre>
  <p>Expected :</p>
  <pre><code>0        0
  1        2
  2        1
  3        1
  4        0
  </code></pre>
  <p>It would be helpful if I can get help debugging this. TIA</p>