Update example code in README

* Improve example code for 'and' and 'count'