#NEWLINE# @ classmethod #NEWLINE# def count_by_domain( cls , domain ) : #NEWLINE# #INDENT# result = cls . view ( 'phone_numbers/verified_number_by_domain' , startkey = [ domain ] , endkey = [ domain , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ] , include_docs = False , reduce = True ) . all ( ) #NEWLINE# if cls : #NEWLINE# #INDENT# return result [ 0 ] [ 'value' ] #NEWLINE# #UNINDENT# return 0