def count(self, model, context):
SELECT_COUNT = self.statement('<STR_LIT>')<EOL>try:<EOL><INDENT>sql, data = SELECT_COUNT(model, context)<EOL><DEDENT>except orb.errors.QueryIsNull:<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>else:<EOL><INDENT>if context.dryRun:<EOL><INDENT>print(sql % data)<EOL>return <NUM_LIT:0><EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>rows, _ = self.execute(sql, data)<EOL><DEDENT>except orb.errors.EmptyCommand:<EOL><INDENT>rows = []<EOL><DEDENT>return sum([row['<STR_LIT:count>'] for row in rows])<EOL><DEDENT><DEDENT>
Returns the count of records that will be loaded for the inputted
information.

:param      model   | <subclass of orb.Model>
            context | <orb.Context>

:return     <int>