You can use ``self.count(count_sql, sql_params, error_message)`` here. See https://github.com/mozilla/socorro/blob/master/socorro/external/postgresql/base.py#L90