#NEWLINE# def process( self , items ) : #NEWLINE# #INDENT# freq = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for item in item : #NEWLINE# #INDENT# if ( item in freq ) : #NEWLINE# #INDENT# freq [ item ] += 1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# freq [ item ] = 1 #NEWLINE# #UNINDENT# #UNINDENT# return freq