'Fetches the pending notification count.'

def Handle(self, args, token=None):

    user_record = aff4.FACTORY.Create(aff4.ROOT_URN.Add('users').Add(token.username), aff4_type=aff4_users.GRRUser, mode='r', token=token)
    notifications = user_record.Get(user_record.Schema.PENDING_NOTIFICATIONS)
    return ApiGetPendingUserNotificationsCountResult(count=len(notifications))
