<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _count_model(self, model):
 """ return model count """

        try:
            res = model.objects.all().count()
        except Exception as e:
            self.err(e)
            return
        return res