Adding a counter for number of conflicts.