Working code. add pixel count, average 'novel' value on motion output.