title: Find how many lists in list have the same element
body: <p>I am new at Python, so I'm having trouble with something. I have a few string lists in one list.</p>
  
  <pre><code>list=[  [['AA','A0'],['AB','A0']],
          [['AA','B0'],['AB','A0']],
          [['A0','00'],['00','A0'], [['00','BB'],['AB','A0'],['AA','A0']] ]
       ]
  </code></pre>
  
  <p>And I have to find how many lists have the same element. For example, the correct result for the above list is 3 for the element <code>['AB','A0']</code> because it is the element that connects the most of them.</p>
  
  <p>I wrote some code...but it's not good...it works for 2 lists in list,but not for more....
  Please,help!
  This is my code...for the above list...</p>
  
  <pre><code>for t in range(0,len(list)-1):
       pattern=[]
       flag=True
       pattern.append(list[t])
       count=1
       rest=list[t+1:]
       for p in pattern:
           for j in p:
              if flag==False:
                 break
              pair= j
              for i in rest:
                   for y in i:
                      if pair==y:
                          count=count+1
                            break                   
              if brojac==len(list):
                  flag=False
                      break             
  </code></pre>