def pa11y_counts(results):
num_error = <NUM_LIT:0><EOL>num_warning = <NUM_LIT:0><EOL>num_notice = <NUM_LIT:0><EOL>for result in results:<EOL><INDENT>if result['<STR_LIT:type>'] == '<STR_LIT:error>':<EOL><INDENT>num_error += <NUM_LIT:1><EOL><DEDENT>elif result['<STR_LIT:type>'] == '<STR_LIT>':<EOL><INDENT>num_warning += <NUM_LIT:1><EOL><DEDENT>elif result['<STR_LIT:type>'] == '<STR_LIT>':<EOL><INDENT>num_notice += <NUM_LIT:1><EOL><DEDENT><DEDENT>return num_error, num_warning, num_notice<EOL>
Given a list of pa11y results, return three integers:
number of errors, number of warnings, and number of notices.