<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def count(self, model, context):
 """ Returns the count of records that will be loaded for the inputted information. :param model | <subclass of orb.Model> context | <orb.Context> :return <int> """

        SELECT_COUNT = self.statement('SELECT COUNT')

        try:
            sql, data = SELECT_COUNT(model, context)
        except orb.errors.QueryIsNull:
            return 0
        else:
            if context.dryRun:
                print sql % data
                return 0
            else:
                try:
                    rows, _ = self.execute(sql, data)
                except orb.errors.EmptyCommand:
                    rows = []

                return sum([row['count'] for row in rows])