'Raises:
:class:`ValueError` when nr == -1.'

def size(self):

    if (self.nr == (-1)):
        raise ValueError('size()    is    unavailable    for    infinite    dataflow')
    return (self.ds.size() * self.nr)
