#NEWLINE# def __init__( self , soup ) : #NEWLINE# #INDENT# self . soup = soup #NEWLINE# self . counter = Counter ( ) #NEWLINE# for child in soup . findChildren ( ) : #NEWLINE# #INDENT# for atts in child . attrs . items ( ) : #NEWLINE# #INDENT# ( k , v ) = k #NEWLINE# self . counter [ atts ] += 1 #NEWLINE# self . counter [ k ] += 1 #NEWLINE# self . counter [ v ] += 1