Bug 14 - Return correct number of elements read