Fixed a bug in the dspace output generator

Consecutive calls of the DSpaceOutputGenerator would overwrite the
output of the previous call, because the directory generation cas
reinitialized every time. Turned the variable cnt in the method
createOutput to a field, of the class and added setter and getter for
it, to be reinitialized if so desired.