def _warnCount(self, warnings, warningCount=None):
if not warningCount:<EOL><INDENT>warningCount = {}<EOL><DEDENT>for warning in warnings:<EOL><INDENT>wID = warning["<STR_LIT>"]<EOL>if not warningCount.get(wID):<EOL><INDENT>warningCount[wID] = {}<EOL>warningCount[wID]["<STR_LIT:count>"] = <NUM_LIT:1><EOL>warningCount[wID]["<STR_LIT:message>"] = warning.get("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>warningCount[wID]["<STR_LIT:count>"] += <NUM_LIT:1><EOL><DEDENT><DEDENT>return warningCount<EOL>
Calculate the count of each warning, being given a list of them.

@param warnings: L{list} of L{dict}s that come from
    L{tools.parsePyLintWarnings}.
@param warningCount: A L{dict} produced by this method previously, if
    you are adding to the warnings.

@return: L{dict} of L{dict}s for the warnings.