def warnings(self, arg):
        '''Return number of non-OK'd warnings.
        '''
        if self._title:
            m = os.path.splitext(os.path.basename(arg))[0]
            self.printf('Processing module %s (%s) ...', m, arg)
        w = ()
        for c in self._cmds:
            w += self.run(c, arg)
        w += self.allist(arg)
        n = self.process(w)
        self.printf('%s%s in %s', _NL, plural(n, 'error'), arg)
        return n
Return number of non-OK'd warnings.
        
recipes/Python/546532_PyChecker_postprocessor/recipe-546532.py