Return the number of points in the buffer

Previously, we were returning the number of requested points, which
would be incorrect if we ran out of points while reading.