added count to rethinkdb