added a count method to the rethinkalchemybase class