counting diffs and size