#NEWLINE# def count( self ) : #NEWLINE# #INDENT# '\n        Returns the number of elements in the sorted set\n        ' #NEWLINE# key = self . get_key ( ) #NEWLINE# redis_result = self . redis . hlen ( key ) #NEWLINE# redis_count = int ( redis_result ) #NEWLINE# return redis_result