Upgrade to new analysis-core.
Use aggregated warnings when computing the number of warnings in tokens.