title: How do I get the number of lists with a particular element?
body: <p>I have a list of lists, which looks like</p>
  
  <pre><code>listOfLists = [
      ['a','b','c','d'],
      ['a','b'],
      ['a','c'],
      ['c','c','c','c']  
   ] 
  </code></pre>
  
  <p>I want to count the number of lists which have a particular element. For Example, my output should be </p>
  
  <pre><code>{'a':3,'b':2,'c':3,'d':1}
  </code></pre>
  
  <p>As you can see, I don't need the total count of an element. In the case of <code>"c"</code>, though its total count is 5, the output is 3 as it occurs only in 3 lists.</p>
  
  <p>I am using a counter to get the counts. The same can be seen below.</p>
  
  <pre><code>line_count_tags = []
  for lists in lists_of_lists:
      s = set()
      for element in lists:
           s.add(t)
      lines_count_tags.append(list(s))
  
  count = Counter([count for counts in lines_count_tags for count in counts])
  </code></pre>
  
  <p>So, when I print count, I get</p>
  
  <pre><code>{'a':3,'c':3,'b':2,'d':1}
  </code></pre>
  
  <p>I want to know if there's a much better way to accomplish my goal.</p>