added count for number of pixels that changed