Fix DiffCount changed trees counter

Fixes #743. Check out the commit message for 5e4617822b8897c3f788037e19d64e5da845be00 for more info