Add metrics to count number of violations of each type.
Merge pull request #177 from Typz/metrics

Add metrics to count number of violations of each type.