while(getRecordReader().nextKeyValue()) {
KEY currentKey = getRecordReader().getCurrentKey();
VALUE currentValue = getRecordReader().getCurrentValue();
doCompute(currentKey, currentValue, context);
dataMap.put(currentKey, currentValue);
<BUG>++count;
}</BUG>
} finally {
if(getRecordReader() != null) {
getRecordReader().close();

while(getRecordReader().nextKeyValue()) {
KEY currentKey = getRecordReader().getCurrentKey();
VALUE currentValue = getRecordReader().getCurrentValue();
doCompute(currentKey, currentValue, context);
dataMap.put(currentKey, currentValue);
count += 1L;
}
} finally {
if(getRecordReader() != null) {
getRecordReader().close();
