def track_pa11y_stats(pa11y_results, spider):
num_err, num_warn, num_notice = pa11y_counts(pa11y_results)<EOL>stats = spider.crawler.stats<EOL>stats.inc_value("<STR_LIT>", count=num_err, spider=spider)<EOL>stats.inc_value("<STR_LIT>", count=num_warn, spider=spider)<EOL>stats.inc_value("<STR_LIT>", count=num_notice, spider=spider)<EOL>
Keep track of the number of pa11y errors, warnings, and notices that
we've seen so far, using the Scrapy stats collector:
http://doc.scrapy.org/en/1.1/topics/stats.html