'Bumps the module\'s error statistic.'

def IncrementErrorCount(self, category):

    self.error_count += 1
    if (self.counting in ('toplevel', 'detailed')):
        if (self.counting != 'detailed'):
            category = category.split('/')[0]
        if (category not in self.errors_by_category):
            self.errors_by_category[category] = 0
        self.errors_by_category[category] += 1
