'Get the number of targets that can be sent to the agent
(based on the total number of targets currently on hold and
the `maxwaiting` attribute value).'

def may_receive(self):

    curwaiting = sum((len(os.listdir(self.get_local_path(p))) for p in ['input', 'remoteinput']))
    return (self.maxwaiting - curwaiting)
