'Return the size of the leading dimension of self.
Returns:
int: the size of the leading dimension.
Raises:
NotImplementedError: Can\'t be instantiated directly.'

def __len__(self):

    raise NotImplementedError()
