Counting order violations.