First you need to divide the wiring into two categories - premises wiring (covered by the NEC) and non-premises wiring (generally not covered by the NEC.)
Many so called electrical fires are caused by non-premises wiring, namely, the improper use of extension cords. Furthermore, many fires labeled "electrical" in origin are simply caused by an appliance that uses electricity, but the actual cause of the fire is not an electrical fault at all - space heaters for instance.
It is my belief that very, very few fires are truly caused by faulty premises wiring, and certainly far less than fires caused by extension cords, lamps, and electric space heaters.