ND2: set SizeT to the number of offsets if there is no dimension metadata

See #10773.