Add countConflicts() and update main() accordingly