Watcher Condition - How do I know when ctx.payload.hits.total increased?

I would like to know when the count of particular search went in number for example error count? Any examples would be helpful.

Thanks
Jag