getNextId()
Returns an unique integer value each time the function is called. The first call will
return the number getDatasliceId()+1 and each subsequent call adds
getDatasliceCount() to the value. This guarantees that when running in parallel,
each data slice sees a different sequence of values.