#NEWLINE# def get_relation_count_query( self , query , parent ) : #NEWLINE# #INDENT# '\n        Add the constraints for a relationship count query.\n\n        :type query: orator.orm.Builder\n        :type parent: orator.orm.Builder\n\n        :rtype: orator.orm.Builder\n        ' #NEWLINE# query = super ( MorphToMany , self ) . get_relation_count_query ( query , parent ) #NEWLINE# return query . where ( ( '%s.%s' % ( self . _table , self . _morph_type ) ) , self . _morph_name )