increment counts even if we break out of the read loop