add count api for mongodb.
fixed bug for dummy option.
Merge pull request #4 from wtsai/master

add count api for mongodb and it's verified.