@staticmethod
def count(timeseries):
    """Extract good_count, bad_count tuple from Stackdriver Monitoring API
        response.

        Args:
            timeseries (list): List of timeseries objects.

        Returns:
            tuple: A tuple (good_event_count, bad_event_count).
        """
    good_event_count, bad_event_count = 0, 0
    for timeserie in timeseries:
        event_type = timeserie.metric.labels['event_type']
        value = timeserie.points[0].value.double_value
        if event_type == 'bad':
            bad_event_count = value
        elif event_type == 'good':
            good_event_count = value
    return good_event_count, bad_event_count
