Add count() method to Db\Record