def count(self):
<EOL>fields_sort = self.fields_sort<EOL>self.fields_sort = self.fields_sort_class()<EOL>self.default_val = <NUM_LIT:0><EOL>ret = self._query('<STR_LIT:count>')<EOL>self.fields_sort = fields_sort<EOL>return ret<EOL>
return the count of the criteria