Add metrics to count number of violations of each type.