benchmark: count by measuring buffer length

Now that offset/length are no longer passed to the onread callback, it's
necessary to increment by the passed buffer length.