Code to generate fault count chart by tool