'Get the number of actions uid has to perform.'

@api.model
def _needaction_count(self, domain=None):

    dom = self._needaction_domain_get()
    if (not dom):
        return 0
    res = self.search(((domain or []) + dom), limit=100, order='id    DESC')
    return len(res)
