Fix logging count of differences