[Peer] remove doCount*, replace doCount call with Query->count()