def METHOD_NAME(self, get_query_plan_mock):
    receipts = [  # noqa
        factories.ScheduleAFactory(
            report_year=2016,
            contribution_receipt_date=datetime.date(2016, 1, 1),
            two_year_transaction_period=2016,
        ),
        factories.ScheduleAFactory(
            report_year=2015,
            contribution_receipt_date=datetime.date(2015, 1, 1),
            two_year_transaction_period=2016,
        ),
    ]
    query = db.session.query(models.ScheduleA)
    # Estimated rows == 200
    get_query_plan_mock.return_value = [
        ('Seq Scan on fec_fitem_sched_a  (cost=0.00..10.60 rows=200 width=1289)',)
    ]
    resource = sched_a.ScheduleAView()
    count, estimate = counts.get_count(resource, query)
    self.assertEqual(count, 2)
    self.assertEqual(estimate, False)