Longs for offset and count computations

Change from int to long types for item count, offset and chunk length computations.