title: Generating a vector of the number of items in each list item
body: <p>I have a list containing 98 items. But each item contains 0, 1, 2, 3, 4 or 5 character strings.</p>
  
  <p>I know how to get the length of the list and in fact <a href="https://stackoverflow.com/questions/1740524/r-count-number-of-objects-in-list">someone has asked the question before</a> and got voted down for presumably asking such an easy question.</p>
  
  <p>But I want a vector that is 98 elements long with each element being an integer from 0 to 5 telling me how many character strings there are in each list item.
  I was expecting the following to work but it did not.</p>
  
  <pre><code>lapply(name.of.list,length())
  </code></pre>
  
  <p>From my question you will see that I do not really know the nomeclature of lists and items. Feel free to straighten me out.</p>