added count to model, and added support for mysql, mongo and memory.
fix mysql count with a better search.
add count to elastic search.
use correct functionc all
added count to rethinkdb
update documentations
Merge pull request #21 from limianwang/master

Add count method support to the model