fix counter for bytes being read

relates to #141