def request_status_code(response):
    """Count the number of requests by status code returned"""
    status_code = response.status_code
    metric = "status_code.{}".format(status_code)
    return metric, 1